Skip to content

Commit

Permalink
fix: fix crash on 1st render
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Nov 8, 2024
1 parent 64fbfa5 commit 43bbc65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DataDimension/Info/DataElementInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export const DataElementInfo = ({ id, displayNameProp }) => {
<tr>
<th>{i18n.t('Data set(s)')}</th>
<td>
{data.dataElement.dataSetElements.length === 1 ? (
{data?.dataElement.dataSetElements.length === 1 ? (
data.dataElement.dataSetElements[0].displayName
) : (
<ul>
{data.dataElement.dataSetElements.map(
{data?.dataElement.dataSetElements.map(
({ id, displayName }) => (
<li key={id}>{displayName}</li>
)
Expand Down

0 comments on commit 43bbc65

Please sign in to comment.