Skip to content

Commit b978d08

Browse files
Update app.tsx
The page component will only show the app name if it doesn't provide a title.
1 parent f1c4c46 commit b978d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { initializeTheme } from './hooks/use-appearance';
88
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
99

1010
createInertiaApp({
11-
title: (title) => `${title} - ${appName}`,
11+
title: (title) => title ? `${title} - ${appName}` : appName,
1212
resolve: (name) => resolvePageComponent(`./pages/${name}.tsx`, import.meta.glob('./pages/**/*.tsx')),
1313
setup({ el, App, props }) {
1414
const root = createRoot(el);

0 commit comments

Comments
 (0)