mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: default zoom level when location is not set (#21428)
This commit is contained in:
parent
303307e1ac
commit
b3372064e0
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@
|
|||
let mapLat = $derived(assetLat ?? previousLocation?.lat ?? 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(() => {
|
||||
if (mapElement && initialPoint) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue