From 670cf6a570b369dd0445595cbe75bc9826df9feb Mon Sep 17 00:00:00 2001 From: Ben Merckx Date: Fri, 29 Sep 2023 10:10:43 +0200 Subject: [PATCH] Cleanup --- src/dashboard/hook/UseUploads.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/dashboard/hook/UseUploads.ts b/src/dashboard/hook/UseUploads.ts index 12a6f3adc..eb8c6f409 100644 --- a/src/dashboard/hook/UseUploads.ts +++ b/src/dashboard/hook/UseUploads.ts @@ -20,7 +20,6 @@ import { join, normalize } from 'alinea/core/util/Paths' -import {imageBlurUrl} from 'alinea/ui' import {rgba, toHex} from 'color2k' import {useSetAtom} from 'jotai' import pLimit from 'p-limit' @@ -303,18 +302,6 @@ export function useUploads(onSelect?: (entry: EntryRow) => void) { } const result = next.result as Media.Image | undefined if (!result) break - const hasThumbHash = Boolean(result.data.thumbHash) - if (hasThumbHash) { - const previewSrc = imageBlurUrl(result.data)! - result.data.preview = next.preview! - result.data.location = previewSrc - } - /*addPending({ - type: MutationType.Edit, - entryId: result.entryId, - file: result.filePath, - entry: result - })*/ onSelect?.(result) break } else {