From 76f4127fceb83ca753eb75ff9510341271eac5f0 Mon Sep 17 00:00:00 2001 From: brendanjbond Date: Tue, 26 Mar 2024 16:13:14 -0500 Subject: [PATCH] add default storeas value to tags --- src/process/normalize/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process/normalize/index.ts b/src/process/normalize/index.ts index a271eb92..10abc50b 100644 --- a/src/process/normalize/index.ts +++ b/src/process/normalize/index.ts @@ -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') {