mirror of
https://github.com/sechan100/daily-routine-2.git
synced 2026-07-22 05:37:51 +00:00
fix: task group의 isOpen이 영속적으로 저장되도록 변경
This commit is contained in:
parent
63e771fce2
commit
915d2f4a48
3 changed files with 4 additions and 2 deletions
1
.env
Normal file
1
.env
Normal file
|
|
@ -0,0 +1 @@
|
|||
ICLOUD_DIRECTORY = /Users/sechan/Library/Mobile Documents/iCloud~md~obsidian/Documents/main/.obsidian/plugins/daily-routine-2/
|
||||
|
|
@ -59,7 +59,8 @@ export class RoutineNoteCreator {
|
|||
return {
|
||||
elementType: "group",
|
||||
name: el.name,
|
||||
children: tasks
|
||||
children: tasks,
|
||||
isOpen: true
|
||||
} as TaskGroup;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export const BaseTaskGroupFeature = React.memo(({
|
|||
}
|
||||
isAllSubTasksCheckedBeforeRef.current = isAllSubTasksChecked;
|
||||
}, [changeOpen, isAllSubTasksChecked])
|
||||
|
||||
|
||||
|
||||
const onElDrop = useCallback((newNote: RoutineNote, dropped: TaskGroup) => {
|
||||
onGroupReorder?.(newNote, dropped);
|
||||
|
|
|
|||
Loading…
Reference in a new issue