Skip to content

Commit

Permalink
add default storeas value to tags
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanbond committed Mar 26, 2024
1 parent 0b2074c commit 76f4127
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 76f4127

Please sign in to comment.