Skip to content

Commit 1c02d45

Browse files
sort existing files before displaying
1 parent 4d7f6f5 commit 1c02d45

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/modules/IDE/reducers/files.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,12 @@ const files = (state, action) => {
227227
return file;
228228
});
229229
default:
230-
return state;
230+
return state.map((file) => {
231+
if (file.name === 'root') {
232+
file.children = sortedChildrenId(state, file.children);
233+
}
234+
return file;
235+
});
231236
}
232237
};
233238

0 commit comments

Comments
 (0)