core: minor refactors

This commit is contained in:
Abdullah Atta
2022-10-17 22:46:43 +05:00
parent 73b09847b8
commit 0b971bda38
2 changed files with 1 additions and 1 deletions

View File

@@ -238,7 +238,6 @@ test("issue: colors are not properly created if multiple notes are synced togeth
await delay(2000);
const purpleColor = deviceB.colors.tag("purple");
console.log(noteIds, purpleColor.noteIds);
expect(noteIds.every((id) => purpleColor.noteIds.indexOf(id) > -1)).toBe(
true
);

View File

@@ -48,6 +48,7 @@ export default class CachedCollection extends IndexedCollection {
// }
this.map = new MapStub.Map(data, this.type);
this.invalidateCache();
}
async clear() {