Skip to content

Commit

Permalink
Merge pull request #207 from SpeciesFileGroup/development
Browse files Browse the repository at this point in the history
Fix TIFF urls
  • Loading branch information
jlpereira authored Mar 4, 2024
2 parents 665312c + 233d026 commit 4854be6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/otus/store/useImageStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ export const useImageStore = defineStore('imageStore', {

this.images = response.data.map((item) => {
const image = { ...item }
const { url, project_token } = __APP_ENV__

if (UNSUPPORTED_FORMAT.includes(image.content_type)) {
image.original = item.original_png || item.original
if (item.original_png) {
image.original = `${url}/${item.original_png?.substring(8)}?project_token=${project_token}`
}
}

return image
Expand Down

0 comments on commit 4854be6

Please sign in to comment.