fix: make sure redirects to a saved view work as intended
This commit is contained in:
@ -90,7 +90,7 @@ export const getProjectView = (projectId: IProject['id']) => {
|
||||
}
|
||||
|
||||
const projectViewSettings = JSON.parse(projectViewSettingsString) as ProjectViewSettings
|
||||
if (router.hasRoute(projectViewSettings[projectId])) {
|
||||
if (!router.hasRoute(projectViewSettings[projectId])) {
|
||||
throw new Error()
|
||||
}
|
||||
return projectViewSettings[projectId]
|
||||
|
Reference in New Issue
Block a user