fix: change workflow template on work, undo issue

This commit is contained in:
puriphatt 2024-10-30 10:25:15 +07:00
parent db67ccd05c
commit 28066cda11

View file

@ -153,13 +153,13 @@ onMounted(async () => {
}); });
watch( watch(
() => productItems.value, () => attributes.value.workflowId,
() => { () => {
if (props.readonly) return;
attributes.value.stepProperties.forEach((s) => { attributes.value.stepProperties.forEach((s) => {
s.productsId = productItems.value.map((p) => p.id); s.productsId = productItems.value.map((p) => p.id);
}); });
}, },
{ deep: true },
); );
</script> </script>
<template> <template>