1
0

fix: make sure redirects to a saved view work as intended

This commit is contained in:
kolaente
2023-03-14 14:09:30 +01:00
committed by Gitea
parent 24b4576c00
commit a64c0c19e5
2 changed files with 3 additions and 1 deletions

View File

@ -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]