only try to load docs if it exists
This commit is contained in:
parent
d62ba77ecb
commit
d1db934d31
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue