Skip to content

Commit

Permalink
Merge pull request #1486 from GuidoZam/guidozam-patch
Browse files Browse the repository at this point in the history
Update DynamicForm.tsx
  • Loading branch information
joelfmrodrigues committed Mar 7, 2023
2 parents b550fad + 33adeaf commit 67a96a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/dynamicForm/DynamicForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ export class DynamicForm extends React.Component<IDynamicFormProps, IDynamicForm

defaultValue = selectedTags;
} else {
if (defaultValue !== "") {
if (defaultValue !== null && defaultValue !== "") {
defaultValue.split(/#|;/).forEach(element => {
if (element.indexOf('|') !== -1)
selectedTags.push({ key: element.split('|')[1], name: element.split('|')[0] });
Expand Down

0 comments on commit 67a96a8

Please sign in to comment.