fix get event by id

This commit is contained in:
Martti Malmi 2023-08-18 21:11:25 +03:00
parent 56c0ccc16c
commit 05d46e8851
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ const useCachedFetch = (url, storageKey, dataProcessor = (data) => data) => {
} else { } else {
fetchData(); fetchData();
} }
}, [url, storageKey, dataProcessor]); }, [url, storageKey]);
return data; return data;
}; };

View File

@ -17,7 +17,7 @@ class EventDB {
} }
get(id: any): Event | undefined { get(id: any): Event | undefined {
const event = this.eventsCollection.by('id', id); const event = this.eventsCollection.by('id', ID(id));
if (event) { if (event) {
return this.unpack(event); return this.unpack(event);
} }