Skip to content

Commit e6e4824

Browse files
authored
Merge pull request #611 from devforth/feature/AdminForth/1602/https-github.-brakes-edit-view
fix: update condition to check visibility for JSON column in create/e…
2 parents 49ff5fa + b228f4a commit e6e4824

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)