Skip to content

Commit b228f4a

Browse files
committed
fix: update condition to check visibility for JSON column in create/edit mode
1 parent 6230eb9 commit b228f4a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

adminforth/spa/src/components/ResourceForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ onMounted(() => {
308308
if (column.type === 'json' && currentValues.value) {
309309
if (column.isArray?.enabled) {
310310
// if value is null or undefined, we should set it to empty array
311-
if (column.showIn?.create === false) {
312-
return;
311+
if (column.showIn?.[mode.value] === false) {
312+
return;
313313
}
314314
if (!currentValues.value[column.name]) {
315315
currentValues.value[column.name] = [];

0 commit comments

Comments
 (0)