Skip to content

Commit

Permalink
Merge branch 'dev' into fix/add-outlier-table-instructions-for-push-a…
Browse files Browse the repository at this point in the history
…nalytics
  • Loading branch information
jenniferarnesen authored Mar 21, 2024
2 parents 7444c91 + 8a54037 commit 6beaefe
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 6beaefe

Please sign in to comment.