mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(web): selection clearing on preview (#27702)
* fix(web): selection clearing on preview * chore: remove unnecessary checks
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
import { closeWebsocketConnection, openWebsocketConnection, websocketStore } from '$lib/stores/websocket';
|
||||
import { copyToClipboard } from '$lib/utils';
|
||||
import { maintenanceShouldRedirect } from '$lib/utils/maintenance';
|
||||
import { isAssetViewerRoute } from '$lib/utils/navigation';
|
||||
import { getServerConfig } from '@immich/sdk';
|
||||
import {
|
||||
CommandPaletteProvider,
|
||||
@@ -107,7 +106,11 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user