From fa6e99c788214094e218ee055ef749ef8a9105ea Mon Sep 17 00:00:00 2001 From: monsieurswag Date: Wed, 15 May 2024 11:30:43 +0200 Subject: [PATCH] Display stored libraries that have been loaded when they are not builtin --- frontend/src/routes/(app)/libraries/+page.server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/routes/(app)/libraries/+page.server.ts b/frontend/src/routes/(app)/libraries/+page.server.ts index cd9c79a5b..181b3dfe1 100644 --- a/frontend/src/routes/(app)/libraries/+page.server.ts +++ b/frontend/src/routes/(app)/libraries/+page.server.ts @@ -61,11 +61,11 @@ export const load = (async ({ fetch }) => { }; }; - const unloadedStoredLibraries = storedLibraries.filter((lib) => lib.is_loaded === false); + const visibleStoredLibraries = storedLibraries.filter(lib => !(lib.is_loaded && lib.builtin)); const storedLibrariesTable = { head: makeHeadData('stored-libraries'), - meta: { urlmodel: 'stored-libraries', ...unloadedStoredLibraries }, - body: tableSourceMapper(unloadedStoredLibraries, listViewFields['stored-libraries'].body) + meta: { urlmodel: 'stored-libraries', ...visibleStoredLibraries }, + body: tableSourceMapper(visibleStoredLibraries, listViewFields['stored-libraries'].body) }; const loadedLibrariesTable = makeLibrariesTable(loadedLibraries, 'loaded-libraries');