Skip to content

Commit

Permalink
Restoring changes removed by merge
Browse files Browse the repository at this point in the history
(cherry picked from commit 76bc8fd)
  • Loading branch information
IRRDC authored and michaelmaillot committed Jan 18, 2024
1 parent 64883f7 commit 69e691e
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/controls/dynamicForm/DynamicForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -597,17 +597,8 @@ export class DynamicForm extends React.Component<
hiddenName = response.value;
termSetId = field.TermSetId;
anchorId = field.AnchorId;
if (item && item[field.InternalName] && item[field.InternalName].results) {
item[field.InternalName].results.forEach((element) => {
selectedTags.push({
key: element.TermGuid,
name: element.Label,
});
});

defaultValue = selectedTags;
} else if (defaultValue && defaultValue.results) {
defaultValue.results.forEach((element) => {
if (item && item[field.InternalName]) {
item[field.InternalName].forEach((element) => {
selectedTags.push({
key: element.TermGuid,
name: element.Label,
Expand Down

0 comments on commit 69e691e

Please sign in to comment.