|
@@ -13,6 +13,7 @@ function FileTreeFolderList({
|
|
|
dropRef = null,
|
|
dropRef = null,
|
|
|
children,
|
|
children,
|
|
|
}) {
|
|
}) {
|
|
|
|
|
+ files = files.map(file => ({ ...file, isFile: true }))
|
|
|
const docsAndFiles = [...docs, ...files]
|
|
const docsAndFiles = [...docs, ...files]
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
@@ -40,7 +41,7 @@ function FileTreeFolderList({
|
|
|
key={doc._id}
|
|
key={doc._id}
|
|
|
name={doc.name}
|
|
name={doc.name}
|
|
|
id={doc._id}
|
|
id={doc._id}
|
|
|
- isFile={doc.linkedFileData !== undefined}
|
|
|
|
|
|
|
+ isFile={doc.isFile}
|
|
|
isLinkedFile={doc.linkedFileData && !!doc.linkedFileData.provider}
|
|
isLinkedFile={doc.linkedFileData && !!doc.linkedFileData.provider}
|
|
|
/>
|
|
/>
|
|
|
)
|
|
)
|