From cbbd79aa507b8c197bfab12640e69c0989d40aaf Mon Sep 17 00:00:00 2001 From: danloh Date: Sun, 3 Mar 2024 08:33:20 -0800 Subject: [PATCH] chore --- CHANGES.md | 2 +- src/components/kanban/updateCard.ts | 4 ++-- src/components/view/kanban.tsx | 7 ++----- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index c1686796..c161049e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,7 +4,7 @@ 2024-XX-XX -- [ ] Organize notes using Kanban +- Organize notes using Kanban ## app-v0.5.8 diff --git a/src/components/kanban/updateCard.ts b/src/components/kanban/updateCard.ts index 2702f246..e04063af 100644 --- a/src/components/kanban/updateCard.ts +++ b/src/components/kanban/updateCard.ts @@ -13,7 +13,7 @@ import { Id, KanbanData, CardItem, Kanbans } from './types'; const updateCard = async (id: Id, noteId: string | string[], oldTitle?: string) => { const initDir = store.getState().initDir; const currentKb = store.getState().currentBoard; - console.log("currentKb", currentKb); + // console.log("currentKb", currentKb); if (!initDir || !currentKb.trim()) return; const [title, itemUri, category] = typeof noteId === "string" @@ -35,7 +35,7 @@ const updateCard = async (id: Id, noteId: string | string[], oldTitle?: string) uri: itemUri, category, }; - console.log("old title in card: ", oldTitle) + // console.log("old title in card: ", oldTitle) if (oldTitle) { // filter out old one const newItems = items.filter(itm => rmFileNameExt(itm.name) !== oldTitle); diff --git a/src/components/view/kanban.tsx b/src/components/view/kanban.tsx index aac1c99a..737a092c 100644 --- a/src/components/view/kanban.tsx +++ b/src/components/view/kanban.tsx @@ -12,7 +12,7 @@ export default function Kanban() { const setCurrentKanban = useStore((state) => state.setCurrentBoard); const [kanbans, setKanbans] = useState({}); - console.log("currentKanban", currentKanban, kanbans); + // console.log("currentKanban", currentKanban, kanbans); useEffect(() => { const kanbanJsonPath = initDir ? joinPath(initDir, `kanban.json`) : ''; @@ -20,8 +20,7 @@ export default function Kanban() { const jsonFile = new FileAPI(kanbanJsonPath); jsonFile.readFile().then(json => { const kanbans: Kanbans = JSON.parse(json || "{}"); - console.log("effect Kanbans", kanbans); - + // console.log("effect Kanbans", kanbans); setKanbans(kanbans); }); } @@ -51,8 +50,6 @@ export default function Kanban() { return kanbans[name] ?? {columns: [], cards: []}; }, [currentKanban, kanbans]); - console.log("KanbanData", kanbanData); - return (