Skip to content

Commit

Permalink
Merge pull request #1739 from pnp/fix/dynamicform-taxonomy-multi
Browse files Browse the repository at this point in the history
[DynamicForm] Fixing multi taxonomy field (loading + saving existing item)
  • Loading branch information
michaelmaillot committed Feb 5, 2024
2 parents bfa8a5e + e2d3983 commit bb9bda4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controls/dynamicForm/DynamicForm.tsx
Expand Up @@ -414,7 +414,7 @@ export class DynamicForm extends React.Component<
if (field.newValue !== null && field.newValue !== undefined) {

let value = field.newValue;
if (["Lookup", "LookupMulti", "User", "UserMulti"].indexOf(fieldType) < 0) {
if (["Lookup", "LookupMulti", "User", "UserMulti", "TaxonomyFieldTypeMulti"].indexOf(fieldType) < 0) {
objects[columnInternalName] = value;
}

Expand Down Expand Up @@ -1199,7 +1199,7 @@ export class DynamicForm extends React.Component<
});
});

defaultValue = selectedTags;
value = selectedTags;
} else {
if (defaultValue && defaultValue !== "") {
defaultValue.split(/#|;/).forEach((element) => {
Expand Down

0 comments on commit bb9bda4

Please sign in to comment.