@eeacms/volto-slate-footnote 6.2.1 → 6.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [6.2.2](https://github.com/eea/volto-slate-footnote/compare/6.2.1...6.2.2) - 20 January 2024
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - fix foontoes not visibile on view [Dobricean Ioan Dorian - [`7c5fb50`](https://github.com/eea/volto-slate-footnote/commit/7c5fb5087cf4e6a9c1dde37ead03e4340031cae5)]
7
12
  ### [6.2.1](https://github.com/eea/volto-slate-footnote/compare/6.2.0...6.2.1) - 18 January 2024
8
13
 
9
14
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-slate-footnote",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "description": "volto-slate-footnote: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -25,13 +25,14 @@ const FootnotesBlockView = (props) => {
25
25
 
26
26
  const metadata = props.metadata ? props.metadata : properties;
27
27
 
28
- const localMetadata = content
28
+ const localMetadata = global
29
+ ? metadata
30
+ : content
29
31
  ? content
30
32
  : tabData
31
33
  ? tabData
32
- : global
33
- ? metadata
34
34
  : properties;
35
+
35
36
  const blocks = getAllBlocksAndSlateFields(localMetadata);
36
37
  const notesObj = makeFootnoteListOfUniqueItems(blocks);
37
38
  let startList = 1;