Skip to content

Commit

Permalink
Reload before navigating to ensure correct data
Browse files Browse the repository at this point in the history
  • Loading branch information
charmcitygavin committed Jan 8, 2025
1 parent e19512c commit f495e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react-app/src/components/ActionForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ export const ActionForm = <Schema extends SchemaWithEnforcableProps>({
pathnameToDisplayOn: formOrigins.pathname,
});

await queryClient.invalidateQueries({ queryKey: ["record"] });
navigate(formOrigins);
queryClient.invalidateQueries({ queryKey: ["record"] });
} catch (error) {
console.error(error);
banner({
Expand Down

0 comments on commit f495e9f

Please sign in to comment.