mirror of
				https://github.com/usememos/memos.git
				synced 2025-10-26 22:36:16 +08:00 
			
		
		
		
	chore: fix task node click handler
This commit is contained in:
		
							parent
							
								
									15ef57589e
								
							
						
					
					
						commit
						ba7dbc1fca
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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<Props> = ({ index, indent, complete, children }: Props) | |||
|     const content = window.restore(context.nodes); | ||||
|     await memoStore.updateMemo( | ||||
|       { | ||||
|         name: `${MemoNamePrefix}${context.memoName}`, | ||||
|         name: context.memoName, | ||||
|         content, | ||||
|       }, | ||||
|       ["content"], | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue