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:
Lucas Berger
2026-01-30 22:05:34 -05:00
parent 87c7bf75e5
commit a08b8dba6b
+4 -6
View File
@@ -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"
}
}