Skip to content

Commit

Permalink
fix(orgunit): fix image preview url
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Oct 29, 2024
1 parent 838d0f2 commit f915912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/organisationUnits/form/ImageField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const ImagePreview = ({
}

if (fileResource && fileResource.id) {
const src = `${baseUrl}/fileResources/${fileResource.id}/data`
const src = `${baseUrl}/api/fileResources/${fileResource.id}/data`

return <img src={src} alt={i18n.t('Preview of current icon')} />
}
Expand Down

0 comments on commit f915912

Please sign in to comment.