Sort nested folders in existing sketch

This commit is contained in:
Neelesh Singh 2020-08-05 00:32:02 +05:30 committed by GitHub
parent 1c02d45fd7
commit 9c8a8a4110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -228,9 +228,7 @@ const files = (state, action) => {
});
default:
return state.map((file) => {
if (file.name === 'root') {
file.children = sortedChildrenId(state, file.children);
}
file.children = sortedChildrenId(state, file.children);
return file;
});
}