Skip to content

Commit

Permalink
Fixing multi taxonomy field (loading + saving existing item)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmaillot committed Jan 19, 2024
1 parent d58bb93 commit e2d3983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controls/dynamicForm/DynamicForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,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 @@ -1200,7 +1200,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 e2d3983

Please sign in to comment.