diff --git a/tools/challenge-editor/api/utils/get-blocks.ts b/tools/challenge-editor/api/utils/get-blocks.ts index 3671d929005..91946bbd0bb 100644 --- a/tools/challenge-editor/api/utils/get-blocks.ts +++ b/tools/challenge-editor/api/utils/get-blocks.ts @@ -1,5 +1,7 @@ import { readFile } from 'fs/promises'; import { join } from 'path'; + +import { chapterBasedSuperBlocks } from '../../../../shared/config/curriculum'; import { SUPERBLOCK_META_DIR, BLOCK_META_DIR, @@ -21,8 +23,6 @@ type BlockLocation = { currentSuperBlock: string; }; -const chapterBasedSuperBlocks = ['full-stack-developer']; - export const getBlocks = async (sup: string): Promise => { const superBlockDataPath = join(SUPERBLOCK_META_DIR, sup + '.json'); const superBlockMetaFile = await readFile(superBlockDataPath, {