Skip to content

Commit 3682246

Browse files
fix(initiate): correctly assign fetched modules to allModules
1 parent 8e4020e commit 3682246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ async function initiate () {
431431
try {
432432
const response = await fetch(modulesFile);
433433
const data = await response.json();
434-
allModules = data;
434+
allModules = data.modules;
435435
} catch (error) {
436436
allModules = [];
437437
console.error("Error fetching modules:", error);

0 commit comments

Comments
 (0)