Skip to content

Commit

Permalink
wip: Change order of file and folders rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobiClark committed Jan 9, 2025
1 parent 0e1a1b5 commit 1233ae5
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,18 +281,6 @@ const DatasetTreeViewRenderer = ({ folderActions, fileActions, allowStructureEdi
</Center>
) : (
<>
{naturalSort(Object.keys(renderDatasetStructureJSONObj?.files || {})).map(
(fileName) => (
<FileItem
key={fileName}
name={fileName}
content={renderDatasetStructureJSONObj.files[fileName]}
onFileClick={fileActions?.["on-file-click"]}
isFileSelected={fileActions?.["is-file-selected"]}
allowStructureEditing={allowStructureEditing}
/>
)
)}
{naturalSort(Object.keys(renderDatasetStructureJSONObj?.folders || {})).map(
(folderName) => (
<FolderItem
Expand All @@ -308,6 +296,18 @@ const DatasetTreeViewRenderer = ({ folderActions, fileActions, allowStructureEdi
/>
)
)}
{naturalSort(Object.keys(renderDatasetStructureJSONObj?.files || {})).map(
(fileName) => (
<FileItem
key={fileName}
name={fileName}
content={renderDatasetStructureJSONObj.files[fileName]}
onFileClick={fileActions?.["on-file-click"]}
isFileSelected={fileActions?.["is-file-selected"]}
allowStructureEditing={allowStructureEditing}
/>
)
)}
</>
)}
</Stack>
Expand Down

0 comments on commit 1233ae5

Please sign in to comment.