diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 9fb6ebc9..d0eae329 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -4144,16 +4144,21 @@ watch( " @submit=" (v) => { - if (!workItems[currentWorkIndex].attributes.workflowId) { + if ( + !workItems[currentWorkIndex].attributes.workflowId && + !dialogService + ) { workItems[currentWorkIndex].attributes.workflowId = v.id; - workItems[currentWorkIndex].attributes.workflowStep.forEach((s) => { - if (!s.hasOwnProperty('productId')) { - s.productsId = workItems[currentWorkIndex].product.map( - (p) => p.id, - ); - } - }); - return; + workItems[currentWorkIndex].attributes.workflowStep.forEach( + (step) => { + if (!step.hasOwnProperty('productId')) { + console.log(1.1); + step.productsId = workItems[currentWorkIndex].product.map( + (p) => p.id, + ); + } + }, + ); } if (dialogService) {