Skip to content

Commit

Permalink
fix: add new goal to current page
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorGoryany committed Oct 2, 2024
1 parent 5842ac7 commit 919e207
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/GoalCreateForm/GoalCreateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ const GoalCreateForm: React.FC<GoalCreateFormProps> = ({
utils.project.getAll.invalidate();
utils.goal.getBatch.invalidate();
utils.v2.project.userProjects.invalidate();
utils.v2.project.getProjectGoalsById.invalidate();

if (form.parent && form.mode === 'default') {
utils.project.getDeepInfo.invalidate({ id: form.parent.id });
Expand Down

0 comments on commit 919e207

Please sign in to comment.