Skip to content

Commit

Permalink
Update Description.tsx (microsoft#3038)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
  • Loading branch information
beyackle and cwhitten authored May 14, 2020
1 parent 0a807a0 commit 9e9548d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export const Description: React.FC<ContentProps> = ({ errors, value, schema, onC
const serializer =
itemSchema && itemSchema?.type === 'string'
? {
get: value => (Array.isArray(value) ? value.join(', ') : value),
set: value => (typeof value === 'string' ? value.split(',').map(s => s.trim()) : value),
get: value => (Array.isArray(value) ? value.join(',') : value),
set: value => (typeof value === 'string' ? value.split(/\s*,\s*/) : value),
}
: null;

Expand Down

0 comments on commit 9e9548d

Please sign in to comment.