Fix: Update webhook page to use customer ID instead of organization ID

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/cef45a7e-c7a3-4336-bdaa-b92707470ca2.jpg
This commit is contained in:
alphaeusmote
2025-04-12 00:08:31 +00:00
+2 -2
View File
@@ -175,7 +175,7 @@ export default function WebhooksPage() {
description: "The webhook has been updated successfully.",
});
queryClient.invalidateQueries({
queryKey: ["/api/webhooks", currentOrganization?.id],
queryKey: ["/api/webhooks", currentCustomer?.id],
});
setIsEditOpen(false);
resetForm();
@@ -200,7 +200,7 @@ export default function WebhooksPage() {
description: "The webhook has been deleted successfully.",
});
queryClient.invalidateQueries({
queryKey: ["/api/webhooks", currentOrganization?.id],
queryKey: ["/api/webhooks", currentCustomer?.id],
});
setIsDeleteOpen(false);
setCurrentWebhook(null);