From 0b9b8e24115ed96613e74d62b0e5f8e8081beaa2 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 7 Feb 2023 18:25:09 +0800 Subject: [PATCH] fix(nc-gui): remove getBackgroundImage --- packages/nc-gui/composables/useAttachment.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/nc-gui/composables/useAttachment.ts b/packages/nc-gui/composables/useAttachment.ts index e10a197b90..8e22871774 100644 --- a/packages/nc-gui/composables/useAttachment.ts +++ b/packages/nc-gui/composables/useAttachment.ts @@ -26,13 +26,8 @@ const useAttachment = () => { evt.target.src = possibleSources[i + 1] } - const getBackgroundImage = (item: Record) => { - return `url('${getAttachmentSrc(item)}'), url(${item.url}), url(${fileNotFoundImgSrc})` - } - return { getAttachmentSrc, - getBackgroundImage, fileNotFoundImgSrc, showFallback, }