From 70cf1a6cdb07fe01267a0c72d84d7032feb358f2 Mon Sep 17 00:00:00 2001 From: eric-intuitem <71850047+eric-intuitem@users.noreply.github.com> Date: Sat, 11 May 2024 11:30:14 +0200 Subject: [PATCH 1/2] Update +page.server.ts avoid filter on intuitem --- frontend/src/routes/(app)/libraries/+page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/(app)/libraries/+page.server.ts b/frontend/src/routes/(app)/libraries/+page.server.ts index d5eb352b1..c8b9536b0 100644 --- a/frontend/src/routes/(app)/libraries/+page.server.ts +++ b/frontend/src/routes/(app)/libraries/+page.server.ts @@ -67,7 +67,7 @@ export const load = (async ({ fetch }) => { }; const defaultLibrariesTable = librariesTable( - libraries.filter((lib) => !lib.id && lib.packager === 'intuitem') + libraries.filter((lib) => !lib.id) ); const importedLibrariesTable = librariesTable(libraries.filter((lib) => lib.id)); From b31bd88a5f83ee83a59feaa3e68b7a46cb52efa3 Mon Sep 17 00:00:00 2001 From: eric-intuitem <71850047+eric-intuitem@users.noreply.github.com> Date: Sat, 11 May 2024 13:16:41 +0200 Subject: [PATCH 2/2] Update +page.server.ts prettier --- frontend/src/routes/(app)/libraries/+page.server.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/routes/(app)/libraries/+page.server.ts b/frontend/src/routes/(app)/libraries/+page.server.ts index c8b9536b0..1ccfbb065 100644 --- a/frontend/src/routes/(app)/libraries/+page.server.ts +++ b/frontend/src/routes/(app)/libraries/+page.server.ts @@ -66,9 +66,7 @@ export const load = (async ({ fetch }) => { }; }; - const defaultLibrariesTable = librariesTable( - libraries.filter((lib) => !lib.id) - ); + const defaultLibrariesTable = librariesTable(libraries.filter((lib) => !lib.id)); const importedLibrariesTable = librariesTable(libraries.filter((lib) => lib.id));