Change GlInfiniteScroll to not display totalItems in its legend if it wasn't supplied
This will fix the underlying cause for how this bug occurred.
Rationale:
-
GlInfiniteScroll
'stotalItems
prop is optional; unfortunately, the component always renders its "legend". SincetotalItems
defaults to0
, the legend in this case will sayShowing n items of 0
, which is precisely what caused the bug.-
GlInfiniteScroll
should change the legend to not displaytotalItems
if it wasn't supplied.
-
Edited by Mark Florian