mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 09:15:50 +01:00
chore(monorepo/client): various type errors
This commit is contained in:
@@ -207,7 +207,7 @@ export default class NoteIconWidget extends NoteContextAwareWidget {
|
||||
|
||||
async getIconToCountMap() {
|
||||
if (!this.iconToCountCache) {
|
||||
this.iconToCountCache = server.get<typeof this.iconToCountCache>("other/icon-usage");
|
||||
this.iconToCountCache = server.get<IconToCountCache>("other/icon-usage");
|
||||
setTimeout(() => (this.iconToCountCache = null), 20000); // invalidate cache after 20 seconds
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user