diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 89d4dee5c..3268939de 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -202,6 +202,7 @@ export function useArrayData(key, userOptions) { } function toArray(str = []) { + if (!str) return []; if (Array.isArray(str)) return str; if (typeof str === 'string') return str.split(',').map((item) => item.trim()); }