mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-17 07:00:45 -04:00
fix(ui): editable region boundaries not persisting on refresh (#55658)
This commit is contained in:
@@ -364,6 +364,7 @@ export type SavedChallengeFile = {
|
||||
ext: Ext;
|
||||
name: string;
|
||||
history?: string[];
|
||||
editableRegionBoundaries?: number[];
|
||||
contents: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@ export function mergeChallengeFiles(
|
||||
|
||||
return sortedChallengeFiles.map((file, index) => ({
|
||||
...file,
|
||||
contents: sortedSavedChallengeFiles[index].contents
|
||||
contents: sortedSavedChallengeFiles[index].contents,
|
||||
editableRegionBoundaries:
|
||||
sortedSavedChallengeFiles[index].editableRegionBoundaries
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user