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.

fix: invalidate columns query when change column slug

LAZIC Erwan8d5e8b1c2574
diff --git a/apps/web/src/hooks/use-project-websocket.ts b/apps/web/src/hooks/use-project-websocket.ts
index 088b4d24b..c3403e9cf 100644
--- a/apps/web/src/hooks/use-project-websocket.ts
+++ b/apps/web/src/hooks/use-project-websocket.ts
@@ -88,6 +88,7 @@ export function useProjectWebSocket(projectId: string) {
if (message.type === "PROJECT_UPDATED") {
queryClient.invalidateQueries({ queryKey: ["projects"] });
queryClient.invalidateQueries({ queryKey: ["labels"] });
+ queryClient.invalidateQueries({ queryKey: ["columns", projectId] });
if (message.linksChanged)
queryClient.invalidateQueries({ queryKey: ["external-links"] });
return;