1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-05 05:40:06 +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>
))}