mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
fix(tools): display blocks despite of missing superblock title/intro (#64412)
This commit is contained in:
@@ -65,5 +65,5 @@ export const getBlocks = async (sup: string): Promise<BlockLocation> => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return { blocks: blocks, currentSuperBlock: introData[sup].title };
|
return { blocks: blocks, currentSuperBlock: introData[sup]?.title };
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -76,6 +76,6 @@ export const getSteps = async (
|
|||||||
return {
|
return {
|
||||||
steps: steps,
|
steps: steps,
|
||||||
currentBlock: blockMetaData.name,
|
currentBlock: blockMetaData.name,
|
||||||
currentSuperBlock: introData[sup].title
|
currentSuperBlock: introData[sup]?.title
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user