mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
feat: add tag deletion
This commit is contained in:
@@ -34,7 +34,7 @@ export default class Notes extends Collection {
|
||||
}
|
||||
if (!!oldNote.tags) {
|
||||
for (let tag of oldNote.tags) {
|
||||
await this._db.tags.remove(tag, id);
|
||||
await this._db.tags.untag(tag, id);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -285,7 +285,7 @@ export default class Notes extends Collection {
|
||||
}
|
||||
}
|
||||
for (let tag of item.tags) {
|
||||
await this._db.tags.remove(tag, id);
|
||||
await this._db.tags.untag(tag, id);
|
||||
}
|
||||
if (item.data.color) {
|
||||
await this._db.colors.remove(item.data.color, id);
|
||||
|
||||
Reference in New Issue
Block a user