Web: Common: added rootFolderType to getFoldersTree api

This commit is contained in:
Nikita Gopienko 2020-10-08 23:56:57 +03:00
parent b95816a388
commit cedca7b3c3

View File

@ -57,14 +57,14 @@ export function getFoldersTree() {
return axios.all(requestsArray).then(
axios.spread((...responses) =>
responses.map((data, index) => {
const trashIndex = 3;
return {
id: data.current.id,
key: `0-${index}`,
title: data.current.title,
rootFolderName: rootFoldersPaths[index], folders:
index !== trashIndex
rootFolderType: data.current.rootFolderType,
rootFolderName: rootFoldersPaths[index],
folders:
index !== rootFoldersPaths.length - 1
? data.folders.map(folder => {
return {
id: folder.id,