only try to load docs if it exists

This commit is contained in:
vcoppe
2024-07-24 09:20:10 +02:00
parent d62ba77ecb
commit d1db934d31

View File

@@ -10,7 +10,7 @@
const modules = import.meta.glob('/src/lib/docs/**/*.mdx');
function loadModule(path: string) {
modules[path]().then((mod) => {
modules[path]?.().then((mod) => {
module = mod.default;
metadata = mod.metadata;
});