Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Sep 29, 2023
1 parent bfa43a8 commit 670cf6a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/dashboard/hook/UseUploads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 670cf6a

Please sign in to comment.