mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-01 08:12:32 +00:00
only try to load docs if it exists
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
const modules = import.meta.glob('/src/lib/docs/**/*.mdx');
|
const modules = import.meta.glob('/src/lib/docs/**/*.mdx');
|
||||||
|
|
||||||
function loadModule(path: string) {
|
function loadModule(path: string) {
|
||||||
modules[path]().then((mod) => {
|
modules[path]?.().then((mod) => {
|
||||||
module = mod.default;
|
module = mod.default;
|
||||||
metadata = mod.metadata;
|
metadata = mod.metadata;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user