Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

router refresh (#1148)

Ameer Al Ashhabb303eb223fa4
diff --git a/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx b/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx
index 8191e4fd9..6fc8db838 100644
--- a/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx
+++ b/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx
@@ -162,6 +162,9 @@ export const CapCard = ({
onError: (error) => {
console.error("Error deleting cap:", error);
},
+ onSuccess: () => {
+ router.refresh();
+ },
onSettled: () => {
setConfirmOpen(false);
},