Skip to content

Commit

Permalink
Merge pull request #69 from formio/FIO-8106-fix-tags-normalization
Browse files Browse the repository at this point in the history
FIO-8106: add default storeas value to tags
  • Loading branch information
travist authored Mar 27, 2024
2 parents 4ae17a6 + 76f4127 commit dec21c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process/normalize/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const normalizeSelectBoxesComponentValue = (value: any) => {

const normalizeTagsComponentValue = (component: TagsComponent, value: any) => {
const delimiter = component.delimeter || ',';
if (component.storeas === 'string' && Array.isArray(value)) {
if ((!component.hasOwnProperty('storeas') || component.storeas === 'string') && Array.isArray(value)) {
return value.join(delimiter);
}
else if (component.storeas === 'array' && typeof value === 'string') {
Expand Down

0 comments on commit dec21c5

Please sign in to comment.