fix: error when no data

This commit is contained in:
Methapon Metanipat 2024-11-25 09:39:37 +07:00
parent 4f3d39bf59
commit 10534f2f25
2 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ async function triggerSubmit() {
const res = await requestListStore.editRequestWork({
id: props.id,
attributes: {
...attributes.value,
...(attributes.value || {}),
properties: formData.value,
remark: formRemark.value,
},

View file

@ -432,7 +432,7 @@ async function triggerViewFile(opt: {
>
<ProductExpansion
:status="
value.stepStatus.find((v) => v.step === pageState.currentStep)
value.stepStatus?.find((v) => v.step === pageState.currentStep)
"
v-model:product-id="value.productService.productId"
:name="value.productService.product.name"
@ -509,7 +509,7 @@ async function triggerViewFile(opt: {
}"
:id="value.id"
:attributes-form="
value.stepStatus[pageState.currentStep - 1]?.attributes
value.stepStatus?.[pageState.currentStep - 1]?.attributes
?.form
"
/>