sort existing files before displaying
This commit is contained in:
parent
4d7f6f55c1
commit
1c02d45fd7
1 changed files with 6 additions and 1 deletions
|
@ -227,7 +227,12 @@ const files = (state, action) => {
|
|||
return file;
|
||||
});
|
||||
default:
|
||||
return state;
|
||||
return state.map((file) => {
|
||||
if (file.name === 'root') {
|
||||
file.children = sortedChildrenId(state, file.children);
|
||||
}
|
||||
return file;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue