Skip to content

Commit

Permalink
fix: avoid extra encode (#8739)
Browse files Browse the repository at this point in the history
  • Loading branch information
mertmit committed Jun 14, 2024
1 parent d327b5c commit c9d5ab2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/nc-gui/composables/useAttachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const useAttachment = () => {
const res: string[] = []
if (item?.data) res.push(item.data)
if (item?.file) res.push(window.URL.createObjectURL(item.file))
if (item?.signedPath) res.push(encodeURI(`${appInfo.value.ncSiteUrl}/${item.signedPath}`))
if (item?.signedUrl) res.push(encodeURI(item.signedUrl))
if (item?.path) res.push(encodeURI(`${appInfo.value.ncSiteUrl}/${item.path}`))
if (item?.signedPath) res.push(`${appInfo.value.ncSiteUrl}/${encodeURI(item.signedPath)}`)
if (item?.signedUrl) res.push(item.signedUrl)
if (item?.path) res.push(`${appInfo.value.ncSiteUrl}/${encodeURI(item.path)}`)
if (item?.url) res.push(item.url)
return res
}
Expand Down

0 comments on commit c9d5ab2

Please sign in to comment.