Skip to content

Commit

Permalink
fix(frontend): delete brain (#2101)
Browse files Browse the repository at this point in the history
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
  • Loading branch information
Zewed authored Jan 27, 2024
1 parent ce7d7b6 commit 3fcdd01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ export const useBrainManagementTabs = () => {
setCurrentBrainId(null);
setIsDeleteOrUnsubscribeModalOpened(false);
void fetchAllBrains();
router.push("/brains-management");
} catch (error) {
console.error("Error deleting brain: ", error);
} finally {
router.push("/brains-management");
setIsDeleteOrUnsubscribeRequestPending(false);
}
};
Expand Down

0 comments on commit 3fcdd01

Please sign in to comment.