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"> <div class="q-py-md q-px-md full-width column">
<span class="app-text-muted"> <span class="app-text-muted">
{{ {{
!attributes.workflowId !attributes.hasOwnProperty('workflowStep')
? $t('general.no', { msg: $t('flow.title') }) ? $t('general.no', { msg: $t('flow.title') })
: attributes.workflowStep?.length === 0 : !attributes.workflowId
? $t('flow.noProcessStep') ? $t('general.no', { msg: $t('flow.title') })
: attributes.workflowStep?.every( : attributes.workflowStep?.length === 0
(s) => !s.attributes.properties?.length, ? $t('flow.noProcessStep')
) : attributes.workflowStep?.every(
? $t('productService.service.noPropertiesYet') (s) => !s.attributes.properties?.length,
: '' )
? $t('productService.service.noPropertiesYet')
: ''
}} }}
</span> </span>