Project

General

Profile

« Previous | Next » 

Revision ea48efb1

Added by Boaz Shuster over 5 years ago

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 <>

  • added
  • modified
  • copied
  • renamed
  • deleted