File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ const EventContainer: React.FC<EventContainerProps> = React.memo(props => {
41
41
setCurrChunk ( nextChunk ) ;
42
42
setCurrIndex ( currIndex + chunkSize ) ;
43
43
}
44
-
45
44
function prevChunk ( ) {
46
45
const prevChunk = eventChartsArr . slice ( currIndex - 2 * chunkSize , currIndex - chunkSize ) ;
47
46
setCurrChunk ( prevChunk ) ;
@@ -55,7 +54,7 @@ const EventContainer: React.FC<EventContainerProps> = React.memo(props => {
55
54
It would be wonderful if a future iteration could manipulate the prometheus configuration in the kubernetes example to send its data
56
55
to an instance of Grafana, and integrate Grafana's dashboard into Chronos to visualize the data.
57
56
*/
58
-
57
+
59
58
const filterSelectedEventMetricsandData = ( eventDataObj : EventDataObject ) : EventDataObject => {
60
59
const filteredEventData = { } ;
61
60
// there's only one element in the selected metrics array for now...
@@ -100,6 +99,8 @@ const EventContainer: React.FC<EventContainerProps> = React.memo(props => {
100
99
}
101
100
}
102
101
setEventChartsArr ( chartsArray ) ;
102
+ setCurrChunk ( chartsArray . slice ( currIndex , currIndex + chunkSize ) ) ;
103
+ setCurrIndex ( currIndex + chunkSize ) ;
103
104
} ;
104
105
105
106
// invoke the filter and generate functions to render charts
You can’t perform that action at this time.
0 commit comments