Web: Files: fixed the display of service folders
This commit is contained in:
parent
5fa38aa8ef
commit
83d9d90ac6
@ -1681,8 +1681,7 @@ class SectionBodyContent extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return (!fileAction.id && currentFolderCount === 0 && !providerItem) ||
|
return (!fileAction.id && currentFolderCount === 0) || null ? (
|
||||||
null ? (
|
|
||||||
parentId === 0 ? (
|
parentId === 0 ? (
|
||||||
this.renderEmptyRootFolderContainer()
|
this.renderEmptyRootFolderContainer()
|
||||||
) : (
|
) : (
|
||||||
|
@ -567,8 +567,10 @@ export const getTreeFolders = (state) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const getCurrentFolderCount = (state) => {
|
export const getCurrentFolderCount = (state) => {
|
||||||
const { filesCount, foldersCount } = state.files.selectedFolder;
|
const { files, folders } = state.files;
|
||||||
return filesCount + foldersCount;
|
const filesLength = files ? files.length : 0;
|
||||||
|
const foldersLength = folders ? folders.length : 0;
|
||||||
|
return filesLength + foldersLength;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getDragItem = (state) => {
|
export const getDragItem = (state) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user