Skip to content

Commit 06cce01

Browse files
committed
router refresh
1 parent 6da2563 commit 06cce01

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • apps/web/app/(org)/dashboard/caps/components/CapCard

apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ export const CapCard = ({
162162
onError: (error) => {
163163
console.error("Error deleting cap:", error);
164164
},
165+
onSuccess: () => {
166+
router.refresh();
167+
},
165168
onSettled: () => {
166169
setConfirmOpen(false);
167170
},

0 commit comments

Comments
 (0)