Skip to content

Commit 69e691e

Browse files
IRRDCmichaelmaillot
authored andcommitted
Restoring changes removed by merge
(cherry picked from commit 76bc8fd)
1 parent 64883f7 commit 69e691e

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/controls/dynamicForm/DynamicForm.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -597,17 +597,8 @@ export class DynamicForm extends React.Component<
597597
hiddenName = response.value;
598598
termSetId = field.TermSetId;
599599
anchorId = field.AnchorId;
600-
if (item && item[field.InternalName] && item[field.InternalName].results) {
601-
item[field.InternalName].results.forEach((element) => {
602-
selectedTags.push({
603-
key: element.TermGuid,
604-
name: element.Label,
605-
});
606-
});
607-
608-
defaultValue = selectedTags;
609-
} else if (defaultValue && defaultValue.results) {
610-
defaultValue.results.forEach((element) => {
600+
if (item && item[field.InternalName]) {
601+
item[field.InternalName].forEach((element) => {
611602
selectedTags.push({
612603
key: element.TermGuid,
613604
name: element.Label,

0 commit comments

Comments
 (0)