mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-11 22:01:07 -04:00
fix(tools): allow position 0 in create-project script (#64247)
This commit is contained in:
@@ -86,7 +86,8 @@ async function createProject(projectArgs: CreateProjectArgs) {
|
||||
}
|
||||
void updateChapterModuleSuperblockStructure(
|
||||
projectArgs.block,
|
||||
{ order: position, chapter, module },
|
||||
// Convert human-friendly (1-based) position to 0-based index for insertion.
|
||||
{ order: position - 1, chapter, module },
|
||||
superblockFilename
|
||||
);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user