Ensure default value for fileKeySort

pull/4476/head
yann300 10 months ago committed by Aniket
parent 0dd32ede9c
commit 1e47bdecb2
  1. 1
      libs/remix-ui/workspace/src/lib/utils/index.ts

@ -125,6 +125,7 @@ export const contextMenuActions: MenuItems = [{
}]
export const fileKeySort = (fileTree: any) => {
fileTree = fileTree || {}
const directories = Object.keys(fileTree).filter((key: string) => !key.includes('....blank') && fileTree[key].isDirectory)
directories.sort((a: string, b: string) => a.toLowerCase().localeCompare(b.toLowerCase()))

Loading…
Cancel
Save