Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ jobs:
wait-on: 'npx wait-on --httpTimeout 20000 http-get://localhost:55001/plone http://localhost:3000'

# Upload Cypress screenshots
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots-acceptance
path: acceptance/cypress/screenshots

# Upload Cypress videos
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos-acceptance
Expand Down
1 change: 1 addition & 0 deletions news/29.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use the original image if the preview scale is not available. @davisagli
3 changes: 2 additions & 1 deletion src/components/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ const View = (props) => {
<img
src={`${flattenToAppURL(data.image?.[0]?.['@id'])}/${
data.image?.[0]?.image_scales?.image[0]?.scales?.preview
?.download
?.download ||
data.image?.[0]?.image_scales?.image[0]?.download
}}`}
alt={data.image?.[0]?.title}
className="image"
Expand Down
Loading