Skip to content

Commit

Permalink
fix: avoid reading from undefined error (DHIS2-17334) (#2970)
Browse files Browse the repository at this point in the history
When using View as with filters applied.
  • Loading branch information
edoardo authored May 8, 2024
1 parent dd67fc6 commit a4e5340
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Item/VisualizationItem/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ class Item extends Component {
}
case CHART:
case VISUALIZATION: {
return item.visualization.type ===
VIS_TYPE_OUTLIER_TABLE &&
return item.type === VISUALIZATION &&
item.visualization.type ===
VIS_TYPE_OUTLIER_TABLE &&
Object.keys(itemFilters).some(
(filter) =>
![
Expand Down

0 comments on commit a4e5340

Please sign in to comment.