We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d724273 commit 7b8f8cbCopy full SHA for 7b8f8cb
src/renderer/components/app.tsx
@@ -185,6 +185,8 @@ export function App() {
185
lastBrowsePage
186
: lastBrowsePage;
187
188
+ const browsePageViewExists = useAppSelector(state => browsePageViewName ? browsePageViewName in state.search.views : false);
189
+
190
React.useEffect(() => {
191
setPageTitle(location.pathname);
192
}, [location.pathname]);
@@ -336,7 +338,7 @@ export function App() {
336
338
<Route element={<NotFoundPage/>}/>
337
339
</Routes>
340
<Activity mode={isBrowsePage ? 'visible' : 'hidden'}>
- {browsePageViewName !== undefined && (
341
+ {browsePageViewExists && browsePageViewName !== undefined && (
342
<BrowsePage
343
viewName={browsePageViewName}
344
sourceTable='browse-page'/>
0 commit comments