mirror of
https://github.com/immich-app/immich.git
synced 2025-11-05 20:13:11 -05:00
fix: default zoom level when location is not set (#21428)
This commit is contained in:
parent
303307e1ac
commit
b3372064e0
@ -44,7 +44,7 @@
|
|||||||
let mapLat = $derived(assetLat ?? previousLocation?.lat ?? undefined);
|
let mapLat = $derived(assetLat ?? previousLocation?.lat ?? undefined);
|
||||||
let mapLng = $derived(assetLng ?? previousLocation?.lng ?? undefined);
|
let mapLng = $derived(assetLng ?? previousLocation?.lng ?? undefined);
|
||||||
|
|
||||||
let zoom = $derived(mapLat !== undefined && mapLng !== undefined ? 12.5 : 1);
|
let zoom = $derived(mapLat && mapLng ? 12.5 : 1);
|
||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
if (mapElement && initialPoint) {
|
if (mapElement && initialPoint) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user