Skip to content

Commit

Permalink
Make savePage() work again when not authenticated.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael committed Jul 7, 2023
1 parent d008d68 commit ca09591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
async function savePage() {
try {
// Only persist the start page when logged in as an admin
if (currentUser) {
if ($currentUser) {
await fetchJSON('POST', '/api/save-page', {
pageId: 'home',
page: {
Expand Down

0 comments on commit ca09591

Please sign in to comment.