adminforth 1.13.0-next.20 → 1.13.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -245,7 +245,12 @@ onMounted(() => {
|
|
|
245
245
|
currentValues.value[column.name] = [];
|
|
246
246
|
} else {
|
|
247
247
|
// else copy array to prevent mutation
|
|
248
|
-
currentValues.value[column.name]
|
|
248
|
+
if (Array.isArray(currentValues.value[column.name])) {
|
|
249
|
+
currentValues.value[column.name] = [...currentValues.value[column.name]];
|
|
250
|
+
} else {
|
|
251
|
+
// fallback for old data
|
|
252
|
+
currentValues.value[column.name] = [`${currentValues.value[column.name]}`];
|
|
253
|
+
}
|
|
249
254
|
}
|
|
250
255
|
} else if (currentValues.value[column.name]) {
|
|
251
256
|
currentValues.value[column.name] = JSON.stringify(currentValues.value[column.name], null, 2);
|