|
@@ -151,7 +151,11 @@ const customFieldChange = (val) => {
|
|
|
form.value.customFieldName = JSON.stringify(result);
|
|
|
};
|
|
|
const beforeOpenDialog = (done, type, loading) => {
|
|
|
- if (type === "edit") {
|
|
|
+ if (
|
|
|
+ type === "edit" &&
|
|
|
+ form.value.customFieldName &&
|
|
|
+ JSON.parse(form.value.customFieldName)?.length > 0
|
|
|
+ ) {
|
|
|
customFieldOptions.value = JSON.parse(form.value.customFieldName);
|
|
|
customFieldNameValues.value = customFieldOptions.value.map(
|
|
|
(item) => item.value
|