Skip to content

Commit

Permalink
fix: show parent info for DE operands
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Nov 19, 2024
1 parent c23c670 commit 4ff8797
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/DataDimension/Info/InfoPopover.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import React from 'react'
import { REPORTING_RATE } from '../../../modules/dataSets.js'
import {
DIMENSION_TYPE_DATA_ELEMENT,
DIMENSION_TYPE_DATA_ELEMENT_OPERAND,
//DIMENSION_TYPE_DATA_SET,
DIMENSION_TYPE_EXPRESSION_DIMENSION_ITEM, // calculation
DIMENSION_TYPE_INDICATOR,
Expand Down Expand Up @@ -39,9 +40,10 @@ export const InfoPopover = ({ reference, onClose, ...props }) => {
elevation="rgba(0, 0, 0, 0.1) 0px 1px 5px, rgba(0, 0, 0, 0.07) 0px 3.6px 13px, rgba(0, 0, 0, 0.06) 0px 8.4px 23px, rgba(0, 0, 0, 0.05) 0px 23px 35px"
>
<div className="popover">
{type === DIMENSION_TYPE_DATA_ELEMENT && (
<DataElementInfo {...infoProps} />
)}
{[
DIMENSION_TYPE_DATA_ELEMENT,
DIMENSION_TYPE_DATA_ELEMENT_OPERAND,
].includes(type) && <DataElementInfo {...infoProps} />}
{type === DIMENSION_TYPE_EXPRESSION_DIMENSION_ITEM && (
<CalculationInfo {...infoProps} />
)}
Expand Down

0 comments on commit 4ff8797

Please sign in to comment.