mirror of
https://github.com/immich-app/immich.git
synced 2026-07-14 09:00:59 +00:00
fix(web): selection clearing on preview (#27702)
* fix(web): selection clearing on preview * chore: remove unnecessary checks
This commit is contained in:
parent
3b47ca1c37
commit
641ab51b80
1 changed files with 5 additions and 2 deletions
|
|
@ -18,7 +18,6 @@
|
||||||
import { closeWebsocketConnection, openWebsocketConnection, websocketStore } from '$lib/stores/websocket';
|
import { closeWebsocketConnection, openWebsocketConnection, websocketStore } from '$lib/stores/websocket';
|
||||||
import { copyToClipboard } from '$lib/utils';
|
import { copyToClipboard } from '$lib/utils';
|
||||||
import { maintenanceShouldRedirect } from '$lib/utils/maintenance';
|
import { maintenanceShouldRedirect } from '$lib/utils/maintenance';
|
||||||
import { isAssetViewerRoute } from '$lib/utils/navigation';
|
|
||||||
import { getServerConfig } from '@immich/sdk';
|
import { getServerConfig } from '@immich/sdk';
|
||||||
import {
|
import {
|
||||||
CommandPaletteProvider,
|
CommandPaletteProvider,
|
||||||
|
|
@ -107,7 +106,11 @@
|
||||||
sidebarStore.reset();
|
sidebarStore.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isAssetViewerRoute(from) && isAssetViewerRoute(to)) {
|
const fromRouteId = from?.route?.id;
|
||||||
|
const toRouteId = to?.route?.id;
|
||||||
|
const sameRouteTransition = fromRouteId && toRouteId && fromRouteId === toRouteId;
|
||||||
|
|
||||||
|
if (sameRouteTransition) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue