Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix-front into dev
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2025-01-24 11:47:24 +01:00
commit 3ef82599ce
1 changed files with 1 additions and 0 deletions

View File

@ -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());
}