mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
collections: check if collection has clear fn
This commit is contained in:
@@ -14,9 +14,9 @@ export default class CachedCollection {
|
||||
if (data.length > 0) this.map = new Map(data);
|
||||
}
|
||||
|
||||
clear = () => {
|
||||
clear() {
|
||||
this.map.clear();
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user