view chart buttons sometimes disappear after clicking
On the fact values page (Monitor -> Facts) clicking on the view chart button makes the button disappear.
Looking at the console.log I see the following errors.
The above error occurred in the <FactChart> component:
in FactChart (created by Connect(FactChart))
Consider adding an error boundary to your tree to customize error handling behavior.
Error: The number that was passed in is not a number
Fixes #25203 - show hosts count if hostsCount is not null
ngettext expects the last argument to be a number.
factCharts.hostsCount is initialized to null in Redux.
when rendering the factChart modal the number of hosts is
translated using ngettext.
However, if factChart is rendered before the data arrives
the component will fail printing the error below in the console:
"The number that was passed in is not a number"
To fix this if factCharts.hostsCount is null don't display
hosts count in the title.
Signed-off-by: Boaz Shuster <email@example.com>