From ba7dbc1fcaf140e6a3f02c5068eae7cfa8da7854 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 1 Apr 2024 21:38:18 +0800 Subject: [PATCH] chore: fix task node click handler --- web/src/components/MemoContent/TaskList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/MemoContent/TaskList.tsx b/web/src/components/MemoContent/TaskList.tsx index 47f5e9d7..884e5e6d 100644 --- a/web/src/components/MemoContent/TaskList.tsx +++ b/web/src/components/MemoContent/TaskList.tsx @@ -2,7 +2,7 @@ import { Checkbox } from "@mui/joy"; import classNames from "classnames"; import { repeat } from "lodash-es"; import { useContext, useState } from "react"; -import { MemoNamePrefix, useMemoStore } from "@/store/v1"; +import { useMemoStore } from "@/store/v1"; import { Node, NodeType, TaskListNode } from "@/types/node"; import Renderer from "./Renderer"; import { RendererContext } from "./types"; @@ -39,7 +39,7 @@ const TaskList: React.FC = ({ index, indent, complete, children }: Props) const content = window.restore(context.nodes); await memoStore.updateMemo( { - name: `${MemoNamePrefix}${context.memoName}`, + name: context.memoName, content, }, ["content"],