Skip to content

Commit

Permalink
Merge pull request #3004 from dhis2/dev
Browse files Browse the repository at this point in the history
fix: merge to master
  • Loading branch information
edoardo authored Mar 21, 2024
2 parents fe16062 + 8a54037 commit 5d3b82c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/api/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ const VisualizationPluginWrapper = (props) => {
[pluginProps]
)

useEffect(() => setPluginProps(props), [props])
useEffect(() => {
setIsLoading(true)
setPluginProps(props)
}, [props])

const onLoadingComplete = () => setIsLoading(false)

Expand Down

0 comments on commit 5d3b82c

Please sign in to comment.