Skip to content

Commit dec21c5

Browse files
authored
Merge pull request #69 from formio/FIO-8106-fix-tags-normalization
FIO-8106: add default storeas value to tags
2 parents 4ae17a6 + 76f4127 commit dec21c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/process/normalize/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const normalizeSelectBoxesComponentValue = (value: any) => {
216216

217217
const normalizeTagsComponentValue = (component: TagsComponent, value: any) => {
218218
const delimiter = component.delimeter || ',';
219-
if (component.storeas === 'string' && Array.isArray(value)) {
219+
if ((!component.hasOwnProperty('storeas') || component.storeas === 'string') && Array.isArray(value)) {
220220
return value.join(delimiter);
221221
}
222222
else if (component.storeas === 'array' && typeof value === 'string') {

0 commit comments

Comments
 (0)