removed old routes
This commit is contained in:
1 parent
3c29cf78ea
commit
6c2fd3837b
2 files changed
+7
-22
No files matched your search
@@ -31,6 +31,13 @@ export function TmdbPreviewPage() {
|
||||
return null;
|
||||
});
|
||||
|
||||
// Redirect immediately if entry is already in library — skip the preview step
|
||||
useEffect(() => {
|
||||
if (libraryEntry) {
|
||||
navigate(`/entry/${libraryEntry.id}`, { replace: true });
|
||||
}
|
||||
}, [libraryEntry, navigate]);
|
||||
|
||||
// Track recently viewed for command palette
|
||||
const addRecentlyViewed = useCommandPaletteStore((s) => s.addRecentlyViewed);
|
||||
useEffect(() => {
|
||||
|
||||
Reference in new issue
Block a user