Skip to content

Commit

Permalink
fix(upload): of files through contents modal where action.request.dat…
Browse files Browse the repository at this point in the history
…a is undefined #87
  • Loading branch information
ichim-david authored Nov 29, 2024
2 parents 079f7df + 942c3bd commit 96ac6dc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### [5.0.6](https://github.com/eea/volto-eea-map/compare/5.0.5...5.0.6) - 5 November 2024
### [5.0.7](https://github.com/eea/volto-eea-map/compare/5.0.6...5.0.7) - 29 November 2024

#### :hammer_and_wrench: Others
#### :bug: Bug Fixes

- fix(upload): of files through contents modal where action.request.data is undefined [Ichim David - [`4ca89e1`](https://github.com/eea/volto-eea-map/commit/4ca89e1ba22d662810a95c6bf6712ae41c355be2)]

### [5.0.6](https://github.com/eea/volto-eea-map/compare/5.0.5...5.0.6) - 6 November 2024

- don't pass all props to PrivacyProtection, ref #278618 [Miu Razvan - [`b3442d6`](https://github.com/eea/volto-eea-map/commit/b3442d60b7d305d06b58b2c64e8f5a3838d6d975)]
### [5.0.5](https://github.com/eea/volto-eea-map/compare/5.0.4...5.0.5) - 19 September 2024

### [5.0.4](https://github.com/eea/volto-eea-map/compare/5.0.3...5.0.4) - 9 September 2024
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-eea-map",
"version": "5.0.6",
"version": "5.0.7",
"description": "@eeacms/volto-eea-map: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
2 changes: 1 addition & 1 deletion src/middlewares/preview_image.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const preview_image = (middlewares) => [
const state = store.getState();
const contentData = state.content.data;
const type = action?.request?.data?.['@type'] || contentData['@type'];
const lastPreviewImage = Object.keys(action?.request?.data).includes(
const lastPreviewImage = Object.keys(action?.request?.data || {}).includes(
'preview_image',
)
? action?.request?.data.preview_image
Expand Down

0 comments on commit 96ac6dc

Please sign in to comment.