🐛 Bug fixes (#252)

🐛 Bug fixes (#252)
This commit is contained in:
Montassar Ghanmy
2023-11-15 10:00:03 +01:00
committed by GitHub
parent 43dc3843c4
commit 2bc9f0e4df
3 changed files with 8 additions and 2 deletions
@@ -183,7 +183,12 @@ export const calculateItemSize = async (
if (item.id === "trash_" + context.user.id) {
const trashedItems = await repository.find(
{ company_id: context.company.id, is_in_trash: true, scope: "personal" },
{
company_id: context.company.id,
creator: context.user.id,
is_in_trash: true,
scope: "personal",
},
{},
context,
);
@@ -90,6 +90,8 @@ export const useDriveUpload = () => {
},
});
}
logger.debug("Finished uploading files");
await refresh(context.parentId);
};
const uploadFromUrl = (
@@ -102,7 +102,6 @@ export const useOnBuildContextMenu = (children: DriveItem[], initialParentId?: s
const viewId = item.is_directory ? item.id : item.parent_id;
const route = RouterServices.generateRouteFromState({ companyId: company, viewId, itemId });
window.open(route, '_blank');
window.open(route, '_blank');
}
},
{ type: 'separator' },