diff --git a/tdrive/frontend/src/app/views/client/body/drive/browser.tsx b/tdrive/frontend/src/app/views/client/body/drive/browser.tsx index 99bdaa89..2cde4fde 100644 --- a/tdrive/frontend/src/app/views/client/body/drive/browser.tsx +++ b/tdrive/frontend/src/app/views/client/body/drive/browser.tsx @@ -383,8 +383,8 @@ export default memo( } item={child} onClick={() => { - const route = RouterServices.generateRouteFromState({dirId: child.id}); - history.push(route); + // const route = RouterServices.generateRouteFromState({dirId: child.id}); + // history.push(route); return setParentId(child.id); }} checked={checked[child.id] || false} diff --git a/tdrive/frontend/src/app/views/client/body/drive/documents/document-row.tsx b/tdrive/frontend/src/app/views/client/body/drive/documents/document-row.tsx index 37ae306c..0d8f1e9e 100644 --- a/tdrive/frontend/src/app/views/client/body/drive/documents/document-row.tsx +++ b/tdrive/frontend/src/app/views/client/body/drive/documents/document-row.tsx @@ -58,7 +58,7 @@ export const DocumentRow = ({ console.log("DEVICE:: " + device); if (device != "ios" && device != "android") { history.push(RouterServices.generateRouteFromState({companyId: company, itemId: item.id, dirId: ''})); - open(item); + //open(item); } }; diff --git a/tdrive/frontend/src/app/views/client/body/drive/header-path.tsx b/tdrive/frontend/src/app/views/client/body/drive/header-path.tsx index 0cbb3a07..18f81433 100644 --- a/tdrive/frontend/src/app/views/client/body/drive/header-path.tsx +++ b/tdrive/frontend/src/app/views/client/body/drive/header-path.tsx @@ -33,13 +33,13 @@ export default ({ inTrash={inTrash || false} path={path} onClick={(viewId, dirId) => { - history.push( + /*history.push( RouterServices.generateRouteFromState({ companyId: company, viewId, dirId, }), - ); + );*/ setParentId(dirId ? dirId : viewId); }} /> @@ -128,7 +128,7 @@ const PathItem = ({ const { user } = useCurrentUser(); const { viewId } = RouterServices.getStateFromRoute(); const { access: trashAccess } = useDriveItem('trash'); - const isInSharedWithMe = viewId === "shared_with_me"; + const isInSharedWithMe = viewId === 'shared_with_me'; return (