Skip to content

Commit

Permalink
🛠️: initiate tags ref using immediate watch for `props.workflowTags…
Browse files Browse the repository at this point in the history
…` in `Workflow/Editor/Index`
  • Loading branch information
itisAliRH authored and mvdbeek committed Jun 18, 2024
1 parent aabfeb8 commit 2ef6fa6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion client/src/components/Workflow/Editor/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,16 @@ export default {
}
}
const tags = ref([...props.workflowTags]);
const tags = ref([]);
watch(
() => props.workflowTags,
(newTags) => {
tags.value = [...newTags];
},
{ immediate: true }
);
const setTagsHandler = new SetValueActionHandler(
undoRedoStore,
(value) => (tags.value = structuredClone(value)),
Expand Down

0 comments on commit 2ef6fa6

Please sign in to comment.