diff --git a/src/api/analytics.js b/src/api/analytics.js index 60504ee269..c0c4cf2878 100644 --- a/src/api/analytics.js +++ b/src/api/analytics.js @@ -59,7 +59,11 @@ export const getAnalyticsRequestForOutlierTable = ({ const headers = [] columns.forEach(({ dimension, items }) => { - parameters[dimension] = items.map(({ id }) => id).join(',') + // only use the first period, this accommodates for the dashboard filter scenario + parameters[dimension] = + dimension === DIMENSION_ID_PERIOD + ? items[0].id + : items.map(({ id }) => id).join(',') headers.push(forDownload ? dimension : dimensionIdHeaderMap[dimension]) diff --git a/src/components/VisualizationPlugin/VisualizationPluginWrapper.js b/src/components/VisualizationPlugin/VisualizationPluginWrapper.js index d85fefd75e..7fd8e6edc9 100644 --- a/src/components/VisualizationPlugin/VisualizationPluginWrapper.js +++ b/src/components/VisualizationPlugin/VisualizationPluginWrapper.js @@ -27,7 +27,10 @@ const VisualizationPluginWrapper = (props) => { [pluginProps] ) - useEffect(() => setPluginProps(props), [props]) + useEffect(() => { + setIsLoading(true) + setPluginProps(props) + }, [props]) const onLoadingComplete = () => setIsLoading(false)