mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-26 09:23:50 +00:00
setActiveContext loads the per-context doc from storage and only fell back to buildSeedDoc when no doc existed. Docs saved before subtask support didn't contain subTaskRef blocks, so reopening such a context showed parents with no children even though task.subTaskIds was populated in the host. Add ensureSubtasksInJSON: walks the loaded top-level content and, for each taskRef, inserts any subTaskRefs from the host that aren't yet present right after the parent's existing subtask group. Idempotent; preserves existing order and never removes subtasks that have been removed in the host (left to a future "sync remove" pass). |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| .gitignore | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||