From bca179732142ecacbd30849762fc1a7de15748dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Paunovi=C4=87?= Date: Thu, 23 Jan 2025 09:36:49 +0100 Subject: [PATCH] chore(ui): make sure input pair component updates only what's needed (#6892) --- ui/src/components/code/components/inputs/InputPair.vue | 2 +- ui/src/components/flows/tasks/TaskComplex.vue | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ui/src/components/code/components/inputs/InputPair.vue b/ui/src/components/code/components/inputs/InputPair.vue index 712d921ae08..e0117c29fd9 100644 --- a/ui/src/components/code/components/inputs/InputPair.vue +++ b/ui/src/components/code/components/inputs/InputPair.vue @@ -74,7 +74,7 @@ if (index !== -1) { // Get the value of the old key - const [value] = entries[index]; + const [, value] = entries[index]; // Remove the old key from the entries entries.splice(index, 1); diff --git a/ui/src/components/flows/tasks/TaskComplex.vue b/ui/src/components/flows/tasks/TaskComplex.vue index d2f8af0434a..8e03f5f1b8f 100644 --- a/ui/src/components/flows/tasks/TaskComplex.vue +++ b/ui/src/components/flows/tasks/TaskComplex.vue @@ -9,10 +9,10 @@ label: root, to: {}, component: h('task-object', { - modelValue: modelValue, - 'onUpdate:modelValue': onInput, + modelValue, schema: currentSchema, - definitions: definitions, + definitions, + 'onUpdate:modelValue': onInput, }), }, position: @@ -25,8 +25,9 @@