From 3f285a021977aaecbb956180327ae5d188351e62 Mon Sep 17 00:00:00 2001 From: Daniel Dietzler Date: Tue, 2 Jun 2026 16:52:17 +0200 Subject: [PATCH] chore: cleanup --- web/src/routes/(user)/utilities/geolocation/+page.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/routes/(user)/utilities/geolocation/+page.svelte b/web/src/routes/(user)/utilities/geolocation/+page.svelte index 213a36c356..061872e42c 100644 --- a/web/src/routes/(user)/utilities/geolocation/+page.svelte +++ b/web/src/routes/(user)/utilities/geolocation/+page.svelte @@ -38,6 +38,8 @@ withCoordinates: true, }; + const isOwnAsset = (asset: TimelineAsset) => asset.ownerId === authManager.user.id; + const handleUpdate = async () => { if (!point) { return; @@ -54,7 +56,7 @@ await updateAssets({ assetBulkUpdateDto: { - ids: assetMultiSelectManager.assets.filter((asset) => asset.ownerId === authManager.user.id).map((asset) => asset.id), + ids: assetMultiSelectManager.assets.filter((asset) => isOwnAsset(asset)).map((asset) => asset.id), latitude: point.lat, longitude: point.lng, }, @@ -106,8 +108,6 @@ const hasGps = (asset: TimelineAsset | AssetPoint): asset is AssetPoint => isDefined(asset.latitude) && isDefined(asset.longitude); - const isOwnAsset = (asset: TimelineAsset) => asset.ownerId === authManager.user.id; - const handleThumbnailClick = ( asset: TimelineAsset, timelineManager: TimelineManager, @@ -202,7 +202,7 @@ > {#snippet customThumbnailLayout(asset: TimelineAsset)} {#if !isOwnAsset(asset)} -
+
{/if} {#if hasGps(asset)}