From 6398879edb95f498a61d761f1061c8a38130c6c2 Mon Sep 17 00:00:00 2001 From: Cannon Lock Date: Wed, 24 Jan 2024 15:27:45 -0600 Subject: [PATCH] Switch how guard is exported from default --- src/pages/maps/ingestion/@id/+guard.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/maps/ingestion/@id/+guard.js b/src/pages/maps/ingestion/@id/+guard.js index 24af3ec2..75c39faa 100644 --- a/src/pages/maps/ingestion/@id/+guard.js +++ b/src/pages/maps/ingestion/@id/+guard.js @@ -1,6 +1,6 @@ import { render, redirect } from "vike/abort"; -const guard = (pageContext) => { +export const guard = (pageContext) => { const { user } = pageContext; if (user === undefined) { @@ -20,5 +20,3 @@ const guard = (pageContext) => { return render(403, "Only admins are allowed to access this page."); } }; - -export default guard;