From e3d84575237bcbeb11da709b057d8522905a76de Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Mon, 9 Dec 2024 17:11:56 +0100 Subject: [PATCH] add week_start default for unauthenticated shared reports view --- resources/js/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/app.ts b/resources/js/app.ts index 5adf58e6..d586ebc6 100644 --- a/resources/js/app.ts +++ b/resources/js/app.ts @@ -32,7 +32,7 @@ createInertiaApp({ user: User; }; }>(); - return page.props.auth.user.week_start; + return page.props.auth.user.week_start ?? 'monday'; }; window.getTimezoneSetting = function () { const page = usePage<{