🐛 Fix preview navigation (#417)

This commit is contained in:
Montassar Ghanmy
2024-03-06 17:13:51 +01:00
committed by GitHub
parent a867baae98
commit d6024c982c
3 changed files with 9 additions and 8 deletions
@@ -52,9 +52,9 @@ class RouterServices extends Observable {
clientSubPathnames: Readonly<string[]> = [
'/client/:companyId',
'/client/:companyId/v/:viewId',
'/client/:companyId/preview/:itemId',
'/client/:companyId/v/:viewId/preview/:itemId',
'/client/:companyId/v/:viewId/d/:dirId',
'/client/:companyId/v/:viewId/preview/:itemId',
'/client/:companyId/v/:viewId/d/:dirId/preview/:itemId',
'/client/:companyId/w/:workspaceId',
'/client/:companyId/w/:workspaceId/c/:channelId',
'/client/:companyId/w/:workspaceId/c/:channelId/t/:threadId',
@@ -294,8 +294,8 @@ class RouterServices extends Observable {
`${this.pathnames.CLIENT}` +
(state.companyId ? `/${state.companyId}` : '') +
(state.viewId ? `/v/${state.viewId}` : '') +
(state.itemId ? `/preview/${state.itemId}` : '') +
(state.dirId ? `/d/${state.dirId}` : '') +
(state.itemId ? `/preview/${state.itemId}` : '') +
(state.sharedWithMe ? `/shared-with-me` : '') +
(state.workspaceId ? `/w/${state.workspaceId}` : '') +
(state.channelId ? `/c/${state.channelId}` : '') +