From 62fd8a939ba80b72fbe21e363ccb68241c33d869 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Wed, 25 Mar 2020 18:59:32 +0100 Subject: [PATCH] Revert "I no longer want to be a programmer." This reverts commit e101aa66bb402cb59f9e711ea7604aa3eccae535. --- src/showplanner/libraries.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/showplanner/libraries.tsx b/src/showplanner/libraries.tsx index de83193..e39ae05 100644 --- a/src/showplanner/libraries.tsx +++ b/src/showplanner/libraries.tsx @@ -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)) {