Skip to content

Commit

Permalink
Display stored libraries that have been loaded when they are not builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed May 15, 2024
1 parent 42731aa commit fa6e99c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/routes/(app)/libraries/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit fa6e99c

Please sign in to comment.