🐛 (images) get file content for images

This commit is contained in:
2021-04-04 14:53:56 +02:00
parent 118f6e568b
commit 5a14ffba13
3 changed files with 18 additions and 10 deletions

View File

@@ -31,9 +31,9 @@ export const useImages = (sha: string) => {
if (!imageFile?.sha) {
return
}
const { getContent } = useFile(imageFile.sha, false)
const { getCachedFileContent } = useFile(imageFile.sha, false)
const fileContent = await getContent()
const fileContent = await getCachedFileContent()
image.setAttribute('src', `${SRC_PREFIX} ${fileContent}`)
}
})