diff --git a/.env b/.env new file mode 100644 index 0000000..95b52a1 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +ICLOUD_DIRECTORY = /Users/sechan/Library/Mobile Documents/iCloud~md~obsidian/Documents/main/.obsidian/plugins/daily-routine-2/ \ No newline at end of file diff --git a/src/entities/routine-to-note/RoutineNoteCreator.ts b/src/entities/routine-to-note/RoutineNoteCreator.ts index 3d2db94..6efab7b 100644 --- a/src/entities/routine-to-note/RoutineNoteCreator.ts +++ b/src/entities/routine-to-note/RoutineNoteCreator.ts @@ -59,7 +59,8 @@ export class RoutineNoteCreator { return { elementType: "group", name: el.name, - children: tasks + children: tasks, + isOpen: true } as TaskGroup; } }); diff --git a/src/features/task-el/ui/BaseTaskGroupFeature.tsx b/src/features/task-el/ui/BaseTaskGroupFeature.tsx index aa04fa0..7669ea1 100644 --- a/src/features/task-el/ui/BaseTaskGroupFeature.tsx +++ b/src/features/task-el/ui/BaseTaskGroupFeature.tsx @@ -66,7 +66,7 @@ export const BaseTaskGroupFeature = React.memo(({ } isAllSubTasksCheckedBeforeRef.current = isAllSubTasksChecked; }, [changeOpen, isAllSubTasksChecked]) - + const onElDrop = useCallback((newNote: RoutineNote, dropped: TaskGroup) => { onGroupReorder?.(newNote, dropped);