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

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);
}
return file;
});
}