mirror of
https://github.com/callumalpass/tasknotes.git
synced 2026-07-22 12:50:26 +00:00
fix: Project removal in edit modal not saving changes (#213)
- Fix projects change detection when removing all projects - Set projects to empty array instead of undefined for proper comparison - Ensures project removals are correctly saved to file
This commit is contained in:
parent
b38b7e3305
commit
d21a566e4f
1 changed files with 1 additions and 1 deletions
|
|
@ -416,7 +416,7 @@ export class TaskEditModal extends TaskModal {
|
|||
const oldProjects = this.task.projects || [];
|
||||
|
||||
if (JSON.stringify(newProjects.sort()) !== JSON.stringify(oldProjects.sort())) {
|
||||
changes.projects = newProjects.length > 0 ? newProjects : undefined;
|
||||
changes.projects = newProjects;
|
||||
}
|
||||
|
||||
// Parse and compare tags
|
||||
|
|
|
|||
Loading…
Reference in a new issue