fix: request list => prevent null on assign properties

This commit is contained in:
puriphatt 2024-11-26 11:15:05 +07:00
parent d58333224c
commit 313e5e3705

View file

@ -62,6 +62,7 @@ async function triggerSubmit() {
});
if (res) {
if (!attributes.value) attributes.value = {};
attributes.value.remark = formRemark.value || '';
attributes.value.properties = JSON.parse(
JSON.stringify(formData.value || {}),
@ -146,7 +147,7 @@ defineEmits<{
<section class="col-5">
<q-input
class="full-height"
:model-value="formRemark || '-'"
:model-value="!state.isEdit ? formRemark || '-' : formRemark"
dense
:readonly="!state.isEdit"
outlined