diff --git a/frontend/src/routes/(app)/libraries/+page.server.ts b/frontend/src/routes/(app)/libraries/+page.server.ts index b788e0c40..f45e081d4 100644 --- a/frontend/src/routes/(app)/libraries/+page.server.ts +++ b/frontend/src/routes/(app)/libraries/+page.server.ts @@ -61,7 +61,13 @@ export const load = (async ({ fetch }) => { }; }; - const storedLibrariesTable = makeLibrariesTable(storedLibraries, 'stored-libraries'); + const unimportedStoredLibraries = storedLibraries.filter((lib) => lib.is_imported === false); + const storedLibrariesTable = { + head: makeHeadData('stored-libraries'), + meta: { urlmodel: 'stored-libraries', ...unimportedStoredLibraries }, + body: tableSourceMapper(unimportedStoredLibraries, listViewFields['stored-libraries'].body) + }; + const loadedLibrariesTable = makeLibrariesTable(loadedLibraries, 'loaded-libraries'); const schema = z.object({ id: z.string() }); diff --git a/frontend/tests/utils/test-utils.ts b/frontend/tests/utils/test-utils.ts index 1a15f10ca..d9dfa8232 100644 --- a/frontend/tests/utils/test-utils.ts +++ b/frontend/tests/utils/test-utils.ts @@ -142,7 +142,7 @@ export const test = base.extend({ }, librariesPage: async ({ page }, use) => { - const lPage = new PageContent(page, '/loaded-ibraries', 'Loaded Libraries'); + const lPage = new PageContent(page, '/libraries', 'Libraries'); await use(lPage); }, @@ -621,7 +621,7 @@ export function getUniqueValue(value: string): string { } export function replaceValues(obj: any, searchValue: string, replaceValue: string) { - for (let key in obj) { + for (const key in obj) { if (typeof obj[key] === 'object') { replaceValues(obj[key], searchValue, replaceValue); } else if (typeof obj[key] === 'string') {