fix: task group의 isOpen이 영속적으로 저장되도록 변경

This commit is contained in:
sechan100 2025-01-31 15:39:36 +09:00
parent 63e771fce2
commit 915d2f4a48
3 changed files with 4 additions and 2 deletions

1
.env Normal file
View file

@ -0,0 +1 @@
ICLOUD_DIRECTORY = /Users/sechan/Library/Mobile Documents/iCloud~md~obsidian/Documents/main/.obsidian/plugins/daily-routine-2/

View file

@ -59,7 +59,8 @@ export class RoutineNoteCreator {
return {
elementType: "group",
name: el.name,
children: tasks
children: tasks,
isOpen: true
} as TaskGroup;
}
});

View file

@ -66,7 +66,7 @@ export const BaseTaskGroupFeature = React.memo(({
}
isAllSubTasksCheckedBeforeRef.current = isAllSubTasksChecked;
}, [changeOpen, isAllSubTasksChecked])
const onElDrop = useCallback((newNote: RoutineNote, dropped: TaskGroup) => {
onGroupReorder?.(newNote, dropped);