Skip to content

Commit

Permalink
chore(ui): make sure input pair component updates only what's needed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosPaunovic authored Jan 23, 2025
1 parent 1b0ce4d commit bca1797
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/code/components/inputs/InputPair.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 5 additions & 4 deletions ui/src/components/flows/tasks/TaskComplex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -25,8 +25,9 @@
</template>

<script setup>
import TextSearch from "vue-material-design-icons/TextSearch.vue";
import {h} from "vue";
import TextSearch from "vue-material-design-icons/TextSearch.vue";
</script>

<script>
Expand Down

0 comments on commit bca1797

Please sign in to comment.