From fe83de88de93861dca8aef00827b775c659d5f20 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Wed, 13 Nov 2024 16:19:42 +0700 Subject: [PATCH] fix: handle work properties old type --- .../WorkManagementComponent.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/04_product-service/WorkManagementComponent.vue b/src/components/04_product-service/WorkManagementComponent.vue index edfe403c..831260be 100644 --- a/src/components/04_product-service/WorkManagementComponent.vue +++ b/src/components/04_product-service/WorkManagementComponent.vue @@ -537,15 +537,17 @@ watch(
{{ - !attributes.workflowId + !attributes.hasOwnProperty('workflowStep') ? $t('general.no', { msg: $t('flow.title') }) - : attributes.workflowStep?.length === 0 - ? $t('flow.noProcessStep') - : attributes.workflowStep?.every( - (s) => !s.attributes.properties?.length, - ) - ? $t('productService.service.noPropertiesYet') - : '' + : !attributes.workflowId + ? $t('general.no', { msg: $t('flow.title') }) + : attributes.workflowStep?.length === 0 + ? $t('flow.noProcessStep') + : attributes.workflowStep?.every( + (s) => !s.attributes.properties?.length, + ) + ? $t('productService.service.noPropertiesYet') + : '' }}