Skip to content

Commit 17718ae

Browse files
author
Pavlo Kulyk
committed
fix: update condition to handle non-string current values in ResourceForm
1 parent 1cbafe4 commit 17718ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/spa/src/components/ResourceForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ onMounted(() => {
289289
}
290290
}
291291
} else if (currentValues.value[column.name]) {
292-
if (typeof currentValues.value[column.name] === 'object') {
292+
if (typeof currentValues.value[column.name] !== 'string') {
293293
currentValues.value[column.name] = JSON.stringify(currentValues.value[column.name], null, 2)
294294
}
295295
}

0 commit comments

Comments
 (0)