fix(04): fix Route Update Type conversion error
Removed empty leftValue from options and changed condition check from object notEmpty to string notEmpty using optional chaining on specific properties (message?.text, callback_query?.id). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+4
-6
@@ -32,16 +32,15 @@
|
||||
"conditions": {
|
||||
"options": {
|
||||
"caseSensitive": true,
|
||||
"leftValue": "",
|
||||
"typeValidation": "loose"
|
||||
},
|
||||
"conditions": [
|
||||
{
|
||||
"id": "has-message",
|
||||
"leftValue": "={{ $json.message }}",
|
||||
"leftValue": "={{ $json.message?.text }}",
|
||||
"rightValue": "",
|
||||
"operator": {
|
||||
"type": "object",
|
||||
"type": "string",
|
||||
"operation": "notEmpty"
|
||||
}
|
||||
}
|
||||
@@ -56,16 +55,15 @@
|
||||
"conditions": {
|
||||
"options": {
|
||||
"caseSensitive": true,
|
||||
"leftValue": "",
|
||||
"typeValidation": "loose"
|
||||
},
|
||||
"conditions": [
|
||||
{
|
||||
"id": "has-callback",
|
||||
"leftValue": "={{ $json.callback_query }}",
|
||||
"leftValue": "={{ $json.callback_query?.id }}",
|
||||
"rightValue": "",
|
||||
"operator": {
|
||||
"type": "object",
|
||||
"type": "string",
|
||||
"operation": "notEmpty"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user