Skip to content

Commit

Permalink
fix: wait for app-runtime fix to be merged
Browse files Browse the repository at this point in the history
This is temporary to avoid the whole modal content to not load.
  • Loading branch information
edoardo committed Nov 19, 2024
1 parent 39c2354 commit 8bc6b56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/DataDimension/Info/ProgramIndicatorInfo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useDataMutation, useDataEngine } from '@dhis2/app-runtime'
import PropTypes from 'prop-types'
import React, { useCallback, useEffect, useState } from 'react'
import { validateProgramIndicatorExpressionMutation } from '../../../api/expression.js'
import { validateIndicatorExpressionMutation } from '../../../api/expression.js'
import i18n from '../../../locales/index.js'
import { getCommonFields, InfoTable } from './InfoTable.js'
import styles from './styles/InfoPopover.style.js'
Expand All @@ -25,7 +25,8 @@ export const ProgramIndicatorInfo = ({ id, displayNameProp }) => {

const engine = useDataEngine()
const [getHumanReadableExpression] = useDataMutation(
validateProgramIndicatorExpressionMutation,
// TODO switch to validateProgramIndicatorExpressionMutation
validateIndicatorExpressionMutation,
{
onError: setError,
}
Expand Down

0 comments on commit 8bc6b56

Please sign in to comment.