remove pbBackup from data fetching in the scripts page

This commit is contained in:
Bram Suurd
2024-06-15 13:30:04 +02:00
parent 7ea090db7a
commit 2e25dc5966

View File

@@ -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<Category[]>);
if (res.length === 0) {
throw new Error("Empty response");
}
throw error;
}
res = res.sort((a: Category, b: Category) => {
if (