only try to load docs if it exists
This commit is contained in:
parent
d62ba77ecb
commit
d1db934d31
@ -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;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user