From dff07baa7429d18a26d0fcb55994da74e298e31e Mon Sep 17 00:00:00 2001 From: MilosPaunovic Date: Thu, 23 Jan 2025 09:24:23 +0100 Subject: [PATCH 1/2] chore(ui): make sure input pair component updates only what's needed --- ui/src/components/code/components/inputs/InputPair.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); From 996468affdebdb64905cf6b2256857e7a77b012b Mon Sep 17 00:00:00 2001 From: MilosPaunovic Date: Thu, 23 Jan 2025 09:25:19 +0100 Subject: [PATCH 2/2] chore(ui): improve code style --- ui/src/components/flows/tasks/TaskComplex.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 @@