fix: refetch issues

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-10-22 18:24:50 +02:00
parent 1206f94cf3
commit 411021ee04
3 changed files with 6 additions and 5 deletions

View File

@@ -51,7 +51,11 @@ export function RuleCard({
trpc.notification.deleteRule.mutationOptions({
onSuccess() {
toast.success('Rule deleted');
client.refetchQueries(trpc.notification.rules.pathFilter());
client.refetchQueries(
trpc.notification.rules.queryOptions({
projectId: rule.projectId,
}),
);
},
}),
);