mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 15:35:35 +00:00
fix: issue when missing exporter layout
This commit is contained in:
@@ -20,9 +20,11 @@ createInertiaApp({
|
||||
import.meta.glob('../pages/**/*.tsx')
|
||||
);
|
||||
|
||||
currentPage.default.layout =
|
||||
currentPage.default.layout ||
|
||||
((p: any) => <DefaultLayout children={p} />);
|
||||
if (currentPage?.default) {
|
||||
currentPage.default.layout =
|
||||
currentPage.default.layout ||
|
||||
((p: any) => <DefaultLayout children={p} />);
|
||||
}
|
||||
|
||||
return currentPage;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user