From b77f36f58f1b0dc67dcd2f54d7ffe18cfbe40308 Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Thu, 2 Oct 2025 11:24:23 +0700 Subject: [PATCH] fix(challenge-editor): use chapterBasedSuperBlocks from config (#62457) --- tools/challenge-editor/api/utils/get-blocks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, {