Explore: Fix show all series (#34968) (#34979)

(cherry picked from commit 6e5d349ae8)

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
This commit is contained in:
Grot (@grafanabot) 2021-05-31 05:41:47 -04:00 committed by GitHub
parent 0df47643fd
commit 8168629948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,10 @@ export function ExploreGraphNGPanel({
{`Showing only ${MAX_NUMBER_OF_TIME_SERIES} time series. `}
<span
className={cx([style.showAllTimeSeries])}
onClick={() => setShowAllTimeSeries(true)}
onClick={() => {
structureChangesRef.current++;
setShowAllTimeSeries(true);
}}
>{`Show all ${dataWithConfig.length}`}</span>
</div>
)}