From 2ef6fa6f8dfc2b4a4e9926e55bf3ed611e644079 Mon Sep 17 00:00:00 2001 From: Alireza Heidari Date: Tue, 18 Jun 2024 16:47:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F:=20initiate=20`tags`=20re?= =?UTF-8?q?f=20using=20immediate=20watch=20for=20`props.workflowTags`=20in?= =?UTF-8?q?=20`Workflow/Editor/Index`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/Workflow/Editor/Index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/client/src/components/Workflow/Editor/Index.vue b/client/src/components/Workflow/Editor/Index.vue index 05bf5162cf74..57a96b367335 100644 --- a/client/src/components/Workflow/Editor/Index.vue +++ b/client/src/components/Workflow/Editor/Index.vue @@ -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)),