diff --git a/web/src/lib/components/shared-components/upload-asset-preview.svelte b/web/src/lib/components/shared-components/upload-asset-preview.svelte index 71ba7e3fb1..29f5a7f702 100644 --- a/web/src/lib/components/shared-components/upload-asset-preview.svelte +++ b/web/src/lib/components/shared-components/upload-asset-preview.svelte @@ -13,9 +13,6 @@ export let uploadAsset: UploadAsset; - let showFallbackImage = uploadAsset.state === UploadState.PENDING; - const previewURL = URL.createObjectURL(uploadAsset.file); - const handleRetry = (uploadAsset: UploadAsset) => { uploadAssetsStore.removeUploadAsset(uploadAsset.id); fileUploadHandler([uploadAsset.file], uploadAsset.albumId); @@ -29,27 +26,9 @@ >
- {#if showFallbackImage || true} -
- -
- {:else} - { - URL.revokeObjectURL(previewURL); - }} - on:error={() => { - URL.revokeObjectURL(previewURL); - showFallbackImage = true; - }} - src={previewURL} - alt="Preview of asset" - class="h-[65px] w-[65px] rounded-bl-lg rounded-tl-lg object-cover" - draggable="false" - /> - {/if} - +
+ +