1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-11 03:34:35 +00:00

fix: fileTree api response to include an additional attribute isFolder

This commit is contained in:
2022-07-19 16:13:46 +05:00
parent 6c35412d2f
commit 0f19384999
4 changed files with 12 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ const TreeViewNode = ({
: undefined
}
>
{hasChild &&
{node.isFolder &&
['Add Folder', 'Add File'].map((item) => (
<MenuItem key={item}>{item}</MenuItem>
))}

View File

@@ -34,5 +34,6 @@ export interface RegisterPermissionPayload {
export interface TreeNode {
name: string
relativePath: string
isFolder: boolean
children: Array<TreeNode>
}