fix: handle work properties old type

This commit is contained in:
puriphatt 2024-11-13 16:19:42 +07:00
parent 6e796049d5
commit fe83de88de

View file

@ -537,15 +537,17 @@ watch(
<div class="q-py-md q-px-md full-width column">
<span class="app-text-muted">
{{
!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')
: ''
}}
</span>