io-sanita-theme 2.4.0 → 2.4.1

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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.4.1](https://github.com/RedTurtle/io-sanita-theme/compare/2.4.0...2.4.1) (2025-03-04)
4
+
5
+ ### Bug Fixes
6
+
7
+ * CardPersona admit no reference ([3f1de41](https://github.com/RedTurtle/io-sanita-theme/commit/3f1de41002da3b9399d19547b9734866b60a1496))
8
+
3
9
  ## [2.4.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.3.4...2.4.0) (2025-03-03)
4
10
 
5
11
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "io-sanita-theme",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "io-sanita-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -72,14 +72,18 @@ export const CardPersona = ({
72
72
  <CardBody className="d-flex">
73
73
  <div className="card-persona-content flex-grow-1 pe-2 pe-lg-5">
74
74
  <CardTitle tag={titleTag} className="mb-0">
75
- <UniversalLink
76
- item={!isEditMode ? item : null}
77
- href={isEditMode ? '#' : ''}
78
- className="card-title-link"
79
- data-element={titleDataElement}
80
- >
81
- {item.title}
82
- </UniversalLink>
75
+ {item['@id'] ? (
76
+ <UniversalLink
77
+ item={!isEditMode ? item : null}
78
+ href={isEditMode ? '#' : ''}
79
+ className="card-title-link"
80
+ data-element={titleDataElement}
81
+ >
82
+ {item.title}
83
+ </UniversalLink>
84
+ ) : (
85
+ item.title
86
+ )}
83
87
  </CardTitle>
84
88
 
85
89
  <CardText tag="div">