mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-26 17:02:27 -04:00
fix(challenge-editor): use chapterBasedSuperBlocks from config (#62457)
This commit is contained in:
@@ -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<BlockLocation> => {
|
||||
const superBlockDataPath = join(SUPERBLOCK_META_DIR, sup + '.json');
|
||||
const superBlockMetaFile = await readFile(superBlockDataPath, {
|
||||
|
||||
Reference in New Issue
Block a user