mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: fix assigning a color removes that color from all other notes
This commit is contained in:
@@ -111,7 +111,7 @@ class NoteStore extends BaseStore<NoteStore> {
|
||||
};
|
||||
|
||||
setColor = async (colorId: string, isChecked: boolean, ...ids: string[]) => {
|
||||
await db.relations.from({ type: "color", id: colorId }, "note").unlink();
|
||||
await db.relations.to({ type: "note", ids }, "color").unlink();
|
||||
if (!isChecked) {
|
||||
for (const id of ids) {
|
||||
await db.relations.add(
|
||||
|
||||
Reference in New Issue
Block a user