Skip to content

Commit 67a96a8

Browse files
Merge pull request #1486 from GuidoZam/guidozam-patch
Update DynamicForm.tsx
2 parents b550fad + 33adeaf commit 67a96a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controls/dynamicForm/DynamicForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export class DynamicForm extends React.Component<IDynamicFormProps, IDynamicForm
441441

442442
defaultValue = selectedTags;
443443
} else {
444-
if (defaultValue !== "") {
444+
if (defaultValue !== null && defaultValue !== "") {
445445
defaultValue.split(/#|;/).forEach(element => {
446446
if (element.indexOf('|') !== -1)
447447
selectedTags.push({ key: element.split('|')[1], name: element.split('|')[0] });

0 commit comments

Comments
 (0)