diff --git a/frontend/src/components/routing/ViewSetRouter.tsx b/frontend/src/components/routing/ViewSetRouter.tsx index d6cf085..4f31963 100644 --- a/frontend/src/components/routing/ViewSetRouter.tsx +++ b/frontend/src/components/routing/ViewSetRouter.tsx @@ -50,7 +50,15 @@ export function ViewSetRouter({viewSet, unselec ) } - const selection = pk ? viewSet.resources?.find(res => res.value[pkKey] === pk) : undefined + let selection + if(pk) { + selection = viewSet.resources?.find(res => res.value[pkKey] === pk) + if(!selection) { + return ( + + ) + } + } return (