Fix codeinput

This commit is contained in:
Julien Nahum
2024-01-16 12:20:05 +01:00
parent 49088e62bc
commit 3d6ee0aab4
8 changed files with 342 additions and 157 deletions

View File

@@ -54,7 +54,11 @@ export const useFormsStore = defineStore('forms', () => {
let tags = []
contentStore.getAll.value.forEach((form) => {
if (form.tags && form.tags.length) {
tags = tags.concat(form.tags.split(','))
if (typeof form.tags === 'string' || form.tags instanceof String ) {
tags = tags.concat(form.tags.split(','))
} else if (Array.isArray(form.tags)) {
tags = tags.concat(form.tags)
}
}
})
return [...new Set(tags)]