Skip to content

Commit

Permalink
fix twentyhq#7486 trigger shouldDirty on adding new options
Browse files Browse the repository at this point in the history
  • Loading branch information
NitinPSingh committed Oct 8, 2024
1 parent 3116b3f commit 5e5ca9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ export const SettingsDataModelFieldSelectForm = ({
const handleAddOption = () => {
const newOptions = getOptionsWithNewOption();

setFormValue('options', newOptions);
setFormValue('options', newOptions, { shouldDirty: true });
};

const handleInputEnter = () => {
const newOptions = getOptionsWithNewOption();

setFormValue('options', newOptions);
setFormValue('options', newOptions, { shouldDirty: true });
};

return (
Expand Down

0 comments on commit 5e5ca9e

Please sign in to comment.