Revert "I no longer want to be a programmer."
This reverts commit e101aa66bb
.
This commit is contained in:
parent
e101aa66bb
commit
62fd8a939b
1 changed files with 1 additions and 5 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue