Revert "I no longer want to be a programmer."

This reverts commit e101aa66bb.
This commit is contained in:
Marks Polakovs 2020-03-25 18:59:32 +01:00
parent e101aa66bb
commit 62fd8a939b

View file

@ -115,11 +115,7 @@ export function AuxLibrary({ libraryId }: { libraryId: string }) {
useEffect(() => {
async function load() {
let libItems = await loadAuxLibrary(libraryId);
// Caching is fun huehuehue
if (!(Array.isArray(libItems))) {
libItems = Object.keys(libItems).map(x => (libItems as any)[x]);
}
const libItems = await loadAuxLibrary(libraryId);
libItems.forEach(item => {
const id = itemId(item);
if (!(id in AUX_CACHE)) {