Skip to content

Commit 33adeaf

Browse files
authored
Update DynamicForm.tsx
1 parent b550fad commit 33adeaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)