Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

Merge pull request #1982 from thejdubb02/fix/workflow-rule-event-types

Tin Sever8d5691ce08d9
diff --cc apps/web/src/hooks/mutations/workflow-rule/use-upsert-workflow-rule.ts
index 401eaff3a,e6a0de76a..703ff4a4b
--- a/apps/web/src/hooks/mutations/workflow-rule/use-upsert-workflow-rule.ts
+++ b/apps/web/src/hooks/mutations/workflow-rule/use-upsert-workflow-rule.ts
@@@ -10,11 -10,12 +10,11 @@@ export function useUpsertWorkflowRule(
data,
}: {
projectId: string;
- data: { integrationType: string; eventType: string; columnId: string };
+ data: Parameters<typeof upsertWorkflowRule>[1];
}) => upsertWorkflowRule(projectId, data),
- onSuccess: (_, variables) => {
+ onSuccess: (_, variables) =>
queryClient.invalidateQueries({
queryKey: ["workflow-rules", variables.projectId],
- });
- },
+ }),
});
}