File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
frontend/src/components/cluster Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import Event from '../../lib/k8s/event';
2525import Node from '../../lib/k8s/node' ;
2626import Pod from '../../lib/k8s/pod' ;
2727import { useFilterFunc } from '../../lib/util' ;
28+ import { useNamespaces } from '../../redux/filterSlice' ;
2829import { useTypedSelector } from '../../redux/hooks' ;
2930import { OverviewChart } from '../../redux/overviewChartsSlice' ;
3031import { DateLabel } from '../common/Label' ;
@@ -117,7 +118,11 @@ function EventsSection() {
117118 )
118119 )
119120 ) ;
120- const { items : events , errors : eventsErrors } = Event . useList ( { limit : Event . maxLimit } ) ;
121+ const namespace = useNamespaces ( ) ;
122+ const { items : events , errors : eventsErrors } = Event . useList ( {
123+ limit : Event . maxLimit ,
124+ namespace,
125+ } ) ;
121126
122127 const warningActionFilterFunc = ( event : Event , search ?: string ) => {
123128 if ( ! filterFunc ( event , search ) ) {
You can’t perform that action at this time.
0 commit comments