File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
projects/observability/src/shared/dashboard/widgets/table Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -203,11 +203,13 @@ export class TableWidgetRendererComponent
203203 protected fetchAndPopulateSelectControls ( ) : void {
204204 this . selectControls$ = this . getSelectControls ( ) . pipe (
205205 tap ( ( selectControls : TableSelectControl [ ] ) => {
206- selectControls . forEach ( selectControl =>
207- this . publishSelectValuesChange (
208- selectControl . options [ 0 ] . metaValue . field ,
209- selectControl . options . filter ( o => o . applied )
210- )
206+ selectControls . forEach (
207+ selectControl =>
208+ selectControl . options . length > 0 &&
209+ this . publishSelectValuesChange (
210+ selectControl . options [ 0 ] . metaValue . field ,
211+ selectControl . options . filter ( o => o . applied )
212+ )
211213 ) ;
212214 } )
213215 ) ;
You can’t perform that action at this time.
0 commit comments