Skip to content

Commit

Permalink
Merge pull request #87 from bcgsc/bugfix/KBDEV-1233-disabled-submit-c…
Browse files Browse the repository at this point in the history
…hanges-other-classes

bugfix/KBDEV-1233 Submit change button keeps being disabled after record edit
  • Loading branch information
bnguyen-bcgsc authored Jul 30, 2024
2 parents 5903ff0 + 71e2cab commit d00937c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/RecordForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const RecordForm = ({
}
}, [modelName]);

const form = useSchemaForm(fieldDefs, initialValue, { variant });
const form = useSchemaForm(fieldDefs, initialValue, {}, { variant });
const {
formIsDirty, setFormIsDirty, formContent, formErrors, formHasErrors,
} = form;
Expand Down
2 changes: 1 addition & 1 deletion src/components/VariantForm/SteppedForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const SteppedForm = ({
const snackbar = useSnackbar();
const [activeStep, setActiveStep] = useState(0);
const { content: visited, updateField: setStepVisit } = useObject({ 0: true });
const form = useSchemaForm(properties, { '@class': modelName, ...value }, { variant: formVariant });
const form = useSchemaForm(properties, { '@class': modelName, ...value }, {}, { variant: formVariant });
const {
formContent, formErrors, formHasErrors, formIsDirty,
} = form;
Expand Down

0 comments on commit d00937c

Please sign in to comment.