Browse Source

fix(nc-gui): add item.data to possible source

pull/5454/head
Wing-Kam Wong 1 year ago
parent
commit
83c34efb36
  1. 1
      packages/nc-gui/composables/useAttachment.ts

1
packages/nc-gui/composables/useAttachment.ts

@ -5,6 +5,7 @@ const useAttachment = () => {
const getPossibleAttachmentSrc = (item: Record<string, any>) => {
const res: string[] = []
if (item?.data) res.push(item.data)
if (item?.path) res.push(`${appInfo.value.ncSiteUrl}/${item.path}`)
if (item?.url) res.push(item.url)
return res

Loading…
Cancel
Save