mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-08-04 21:42:44 +00:00
SYNC_IMPORT, BACKUP_IMPORT, and Repair operations contain full app state in their payload. When these operations were downloaded by another client and applied via applyOperations(), convertOpToAction() was spreading the payload directly into the action. But reducers expect action.appDataComplete, so they received undefined and fell back to empty/initial state. This caused complete data loss (no projects, no tags, tasks in wrong project) when syncing SYNC_IMPORT operations between clients. Fix: Add extractFullStatePayload() that wraps the payload in appDataComplete for full-state operation types, matching what loadAllData action expects. Also clears file-based storage directories in the clear-data script. |
||
|---|---|---|
| .. | ||
| clear-data.ts | ||
| delete-user.ts | ||