mirror of
https://github.com/immich-app/immich.git
synced 2026-03-11 12:47:36 +03:00
fix(web): previous previous route when hiding person (#4452)
This commit is contained in:
@@ -132,6 +132,10 @@
|
||||
|
||||
onMount(() => {
|
||||
const action = $page.url.searchParams.get('action');
|
||||
const getPreviousRoute = $page.url.searchParams.get('previousRoute');
|
||||
if (getPreviousRoute) {
|
||||
previousRoute = getPreviousRoute;
|
||||
}
|
||||
if (action == 'merge') {
|
||||
viewMode = ViewMode.MERGE_FACES;
|
||||
}
|
||||
@@ -176,7 +180,7 @@
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
|
||||
goto(AppRoute.EXPLORE, { replaceState: true });
|
||||
goto(previousRoute, { replaceState: true });
|
||||
} catch (error) {
|
||||
handleError(error, 'Unable to hide person');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user