@@ -31,7 +31,7 @@ export const useDrivePreviewModal = () => {
|
||||
|
||||
const close = () => {
|
||||
setStatus({ item: null, loading: true });
|
||||
history.push(RouterServices.generateRouteFromState({companyId: company, viewId: "", itemId: ""}));
|
||||
history.push(RouterServices.generateRouteFromState({companyId: company, itemId: ""}));
|
||||
}
|
||||
|
||||
return { open, close, isOpen: !!status.item };
|
||||
|
||||
@@ -51,6 +51,7 @@ class RouterServices extends Observable {
|
||||
'/client/:companyId',
|
||||
'/client/:companyId/v/:viewId',
|
||||
'/client/:companyId/preview/:itemId',
|
||||
'/client/:companyId/v/:viewId/preview/:itemId',
|
||||
'/client/:companyId/w/:workspaceId',
|
||||
'/client/:companyId/w/:workspaceId/c/:channelId',
|
||||
'/client/:companyId/w/:workspaceId/c/:channelId/t/:threadId',
|
||||
|
||||
@@ -57,7 +57,7 @@ export const DocumentRow = ({
|
||||
const device = getDevice();
|
||||
console.log("DEVICE:: " + device);
|
||||
if (device != "ios" && device != "android") {
|
||||
history.push(RouterServices.generateRouteFromState({companyId: company, viewId: "", itemId: item.id}));
|
||||
history.push(RouterServices.generateRouteFromState({companyId: company, itemId: item.id}));
|
||||
open(item);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user