diff --git a/src/components/Item/VisualizationItem/Visualization/IframePlugin.js b/src/components/Item/VisualizationItem/Visualization/IframePlugin.js index 73ee4e50c..936dd7106 100644 --- a/src/components/Item/VisualizationItem/Visualization/IframePlugin.js +++ b/src/components/Item/VisualizationItem/Visualization/IframePlugin.js @@ -4,7 +4,7 @@ import { CenteredContent, CircularLoader } from '@dhis2/ui' //import postRobot from '@krakenjs/post-robot' import PropTypes from 'prop-types' import React, { useCallback, useEffect, useMemo, useState } from 'react' -import { useDispatch, useSelector } from 'react-redux' +import { useDispatch, useSelector, shallowEqual } from 'react-redux' import { acAddIframePluginStatus } from '../../../../actions/iframePluginStatus.js' import { CHART, @@ -38,7 +38,7 @@ const IframePlugin = ({ isFirstOfType, }) => { const dispatch = useDispatch() - const iframePluginStatus = useSelector(sGetIframePluginStatus) + const iframePluginStatus = useSelector(sGetIframePluginStatus, shallowEqual) const { d2 } = useD2() const { baseUrl } = useConfig()