Skip to content

Commit ca288e6

Browse files
authored
Merge pull request pnp#1614 from IRRDC/master
Bugfix for issue 1568
2 parents dcd5656 + 12a9abe commit ca288e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controls/dynamicForm/DynamicForm.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,8 @@ export class DynamicForm extends React.Component<
580580
hiddenName = response.value;
581581
termSetId = field.TermSetId;
582582
anchorId = field.AnchorId;
583-
if (item !== null) {
584-
item[field.InternalName].forEach((element) => {
583+
if (item !== null && item[field.InternalName] !== null && item[field.InternalName].results !== null) {
584+
item[field.InternalName].results.forEach((element) => {
585585
selectedTags.push({
586586
key: element.TermGuid,
587587
name: element.Label,

0 commit comments

Comments
 (0)