Skip to content

Commit

Permalink
πŸ› Bug fixes (#252)
Browse files Browse the repository at this point in the history
πŸ› Bug fixes (#252)
  • Loading branch information
MontaGhanmy authored Nov 15, 2023
1 parent 43dc384 commit 2bc9f0e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion tdrive/backend/node/src/services/documents/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export const useDriveUpload = () => {
},
});
}
logger.debug("Finished uploading files");
await refresh(context.parentId);
};

const uploadFromUrl = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down

0 comments on commit 2bc9f0e

Please sign in to comment.