Skip to content

Commit

Permalink
fix(app-aco): use form data to bypass the event execution order probl…
Browse files Browse the repository at this point in the history
…em (#3486)
  • Loading branch information
Pavel910 committed Aug 23, 2023
1 parent 52541ca commit e7547c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app-aco/src/components/Dialogs/DialogCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ export const FolderDialogCreate: React.VFC<FolderDialogCreateProps> = ({
const { showSnackbar } = useSnackbar();

const onSubmit: FormOnSubmit<SubmitData> = useCallback(
async data => {
async (_, form) => {
try {
await createFolder({
...data,
...form.data,
parentId: parentId === ROOT_FOLDER ? null : parentId
});
setDialogOpen(false);
Expand Down

0 comments on commit e7547c9

Please sign in to comment.