Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove url options parsing from server renderer
This will be done via the api
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent aca40f5 commit 7c823d1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pages/mod-queue.page.server.tsx
Expand Up @@ -21,11 +21,6 @@ export async function onBeforeRender(pageContext: PageContext) {
report: "Game Reports",
};

const { searchParams } = new URL(
pageContext.urlOriginal,
"http://localhost:8788"
);

const allowedTypes = [];

for (const [type, ints] of Object.entries(typePermissions)) {
Expand All @@ -41,10 +36,6 @@ export async function onBeforeRender(pageContext: PageContext) {
status: 403,
};

const includeClosed = searchParams.get("includeClosed");
const type = searchParams.get("type");
const sort = searchParams.get("sort") ?? "asc";

return {
pageContext: {
pageProps: {
Expand Down

0 comments on commit 7c823d1

Please sign in to comment.