Persist current view after opening a file (#166) (#168)

This commit is contained in:
Aymeric
2023-07-27 10:46:16 +02:00
committed by GitHub
parent 1f34e949c7
commit 7f35142697
3 changed files with 3 additions and 2 deletions
@@ -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 };