From 311d3d363c0b29e9e2e29b25f9e6d6b8cd3e55dc Mon Sep 17 00:00:00 2001 From: David Glick Date: Tue, 11 Feb 2025 12:44:57 -0800 Subject: [PATCH 1/2] Fall back to original image --- news/29.bugfix | 1 + src/components/View.jsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 news/29.bugfix diff --git a/news/29.bugfix b/news/29.bugfix new file mode 100644 index 0000000..0db773c --- /dev/null +++ b/news/29.bugfix @@ -0,0 +1 @@ +Use the original image if the preview scale is not available. @davisagli diff --git a/src/components/View.jsx b/src/components/View.jsx index 10e5d0c..5a3ca54 100644 --- a/src/components/View.jsx +++ b/src/components/View.jsx @@ -28,7 +28,8 @@ const View = (props) => { {data.image?.[0]?.title} Date: Tue, 11 Feb 2025 12:45:47 -0800 Subject: [PATCH 2/2] Fix CI --- .github/workflows/acceptance.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index 1ce933a..0022589 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -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