This PR fixes 2 different UI bugs that I have encountered in using the Atlas Data Sources reports.
If the request to get the data for a report for some reason returns an empty array, the tabular view showed a perpetual spinner. I have update the TreeMap.js code to set the tableData parameter to an empty array in this case so that the code that turns off the spinner has an opportunity to execute.
This PR fixes 2 different UI bugs that I have encountered in using the Atlas Data Sources reports.
If the request to get the data for a report for some reason returns an empty array, the tabular view showed a perpetual spinner. I have update the TreeMap.js code to set the tableData parameter to an empty array in this case so that the code that turns off the spinner has an opportunity to execute.
The frequency distribution report failed to display because there was a bug in how the chart's x-axis label is generated. A recent PR changed the
parseFrequencyDistribution
function signature so that it now passes in a string, rather than a function, for thereport
parameter. (https://github.com/OHDSI/Atlas/pull/2806/files#diff-ea4bfc7a6c32110ea437c23665e2c52aea4d576102f87d5f808e40eead045176L284)