Skip to content

Commit

Permalink
fix(web): load panorama in shared link (#8060)
Browse files Browse the repository at this point in the history
* fix(web): load panorama in shared link

* remove console log
  • Loading branch information
alextran1502 committed Mar 19, 2024
1 parent 50924f0 commit 51841d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/lib/components/asset-viewer/panorama-viewer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import { serveFile, type AssetResponseDto } from '@immich/sdk';
import { fade } from 'svelte/transition';
import LoadingSpinner from '../shared-components/loading-spinner.svelte';
import { getKey } from '$lib/utils';
export let asset: AssetResponseDto;
const loadAssetData = async () => {
const data = await serveFile({ id: asset.id, isWeb: false, isThumb: false });
const data = await serveFile({ id: asset.id, isWeb: false, isThumb: false, key: getKey() });
return URL.createObjectURL(data);
};
</script>
Expand Down

0 comments on commit 51841d6

Please sign in to comment.