fix(tools): display blocks despite of missing superblock title/intro (#64412)

This commit is contained in:
Krzysztof G.
2025-12-10 08:24:36 +01:00
committed by GitHub
parent 14932a9d38
commit 6a8be7ca50
2 changed files with 2 additions and 2 deletions

View File

@@ -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 };
}; };

View File

@@ -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
}; };
}; };