From 2e25dc5966928d3a6bd7efba9f2f2af687343071 Mon Sep 17 00:00:00 2001 From: Bram Suurd Date: Sat, 15 Jun 2024 13:30:04 +0200 Subject: [PATCH] remove pbBackup from data fetching in the scripts page --- app/scripts/page.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/scripts/page.tsx b/app/scripts/page.tsx index d8d56c8..b2d4e1f 100644 --- a/app/scripts/page.tsx +++ b/app/scripts/page.tsx @@ -48,14 +48,7 @@ export default function Page() { } } catch (error) { console.error("Error fetching links from pb:", error); - res = await (pbBackup.collection("categories").getFullList({ - expand: "items", - sort: "order", - requestKey: "desktop", - }) as Promise); - if (res.length === 0) { - throw new Error("Empty response"); - } + throw error; } res = res.sort((a: Category, b: Category) => { if (