diff --git a/CHANGELOG.md b/CHANGELOG.md index 065d71f..07a77c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ 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). +### [6.2.2](https://github.com/eea/volto-slate-footnote/compare/6.2.1...6.2.2) - 20 January 2024 + +#### :hammer_and_wrench: Others + +- fix foontoes not visibile on view [Dobricean Ioan Dorian - [`7c5fb50`](https://github.com/eea/volto-slate-footnote/commit/7c5fb5087cf4e6a9c1dde37ead03e4340031cae5)] ### [6.2.1](https://github.com/eea/volto-slate-footnote/compare/6.2.0...6.2.1) - 18 January 2024 #### :bug: Bug Fixes diff --git a/package.json b/package.json index 23252ce..678d8da 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-slate-footnote", - "version": "6.2.1", + "version": "6.2.2", "description": "volto-slate-footnote: Volto add-on", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/src/Blocks/Footnote/FootnotesBlockView.jsx b/src/Blocks/Footnote/FootnotesBlockView.jsx index 4b4c2a2..e7788f4 100644 --- a/src/Blocks/Footnote/FootnotesBlockView.jsx +++ b/src/Blocks/Footnote/FootnotesBlockView.jsx @@ -25,13 +25,14 @@ const FootnotesBlockView = (props) => { const metadata = props.metadata ? props.metadata : properties; - const localMetadata = content + const localMetadata = global + ? metadata + : content ? content : tabData ? tabData - : global - ? metadata : properties; + const blocks = getAllBlocksAndSlateFields(localMetadata); const notesObj = makeFootnoteListOfUniqueItems(blocks); let startList = 1;