diff --git a/tdrive/backend/node/src/services/documents/utils.ts b/tdrive/backend/node/src/services/documents/utils.ts index bce12a3a0..1fce68cc5 100644 --- a/tdrive/backend/node/src/services/documents/utils.ts +++ b/tdrive/backend/node/src/services/documents/utils.ts @@ -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, ); diff --git a/tdrive/frontend/src/app/features/drive/hooks/use-drive-upload.tsx b/tdrive/frontend/src/app/features/drive/hooks/use-drive-upload.tsx index aecac709b..8aed3b46c 100644 --- a/tdrive/frontend/src/app/features/drive/hooks/use-drive-upload.tsx +++ b/tdrive/frontend/src/app/features/drive/hooks/use-drive-upload.tsx @@ -90,6 +90,8 @@ export const useDriveUpload = () => { }, }); } + logger.debug("Finished uploading files"); + await refresh(context.parentId); }; const uploadFromUrl = ( diff --git a/tdrive/frontend/src/app/views/client/body/drive/context-menu.tsx b/tdrive/frontend/src/app/views/client/body/drive/context-menu.tsx index 3cc001a3d..76c83a950 100644 --- a/tdrive/frontend/src/app/views/client/body/drive/context-menu.tsx +++ b/tdrive/frontend/src/app/views/client/body/drive/context-menu.tsx @@ -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' },