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: removing un-setting to workspace and projects when going to settings

Andrejd4b8e5aa7858
diff --git a/apps/web/src/components/common/sidebar/sections/bottom-actions/index.tsx b/apps/web/src/components/common/sidebar/sections/bottom-actions/index.tsx
index 60c2f8729..8ad2b89e2 100644
--- a/apps/web/src/components/common/sidebar/sections/bottom-actions/index.tsx
+++ b/apps/web/src/components/common/sidebar/sections/bottom-actions/index.tsx
@@ -1,7 +1,5 @@
import { cn } from "@/lib/cn";
-import useProjectStore from "@/store/project";
import { useUserPreferencesStore } from "@/store/user-preferences";
-import useWorkspaceStore from "@/store/workspace";
import { useNavigate } from "@tanstack/react-router";
import { Settings } from "lucide-react";
import SignOutButton from "./sign-out-button";
@@ -9,12 +7,8 @@ import SignOutButton from "./sign-out-button";
function BottomActions() {
const { isSidebarOpened } = useUserPreferencesStore();
const navigate = useNavigate();
- const { setProject } = useProjectStore();
- const { setWorkspace } = useWorkspaceStore();
const handleClickSettings = () => {
- setProject(undefined);
- setWorkspace(undefined);
navigate({ to: "/dashboard/settings/appearance" });
};