Skip to content

Commit

Permalink
Merge pull request #18 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
[pull] dev from KelvinTegelaar:dev
  • Loading branch information
pull[bot] authored Jan 21, 2025
2 parents f7ea2ce + b382837 commit df58b36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/CippComponents/CippApiDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ export const CippApiDialog = (props) => {
}
useEffect(() => {
if (api.noConfirm) {
formHook.handleSubmit(onSubmit)(); // Submits the form on mount
createDialog.handleClose(); // Closes the dialog after submitting
formHook.handleSubmit(onSubmit)();
createDialog.handleClose();
}
}, [api.noConfirm]); // Run effect only when api.noConfirm changes
}, [api.noConfirm]);

const handleClose = () => {
createDialog.handleClose();
Expand Down
6 changes: 5 additions & 1 deletion src/components/CippStandards/CippStandardsSideBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ const CippStandardsSideBar = ({
}}
row={formControl.getValues()}
formControl={formControl}
relatedQueryKeys={"listStandardTemplates"}
relatedQueryKeys={[
"listStandardTemplates",
"listStandards",
`listStandardTemplates-${watchForm.GUID}`,
]}
/>
</Card>
);
Expand Down

0 comments on commit df58b36

Please sign in to comment.