File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
projects/observability/src/shared/dashboard/widgets/table Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -470,12 +470,18 @@ export class TableWidgetRendererComponent
470470 }
471471
472472 public onSearchChange ( text : string ) : void {
473- const searchFilter : TableFilter = {
474- field : this . api . model . getSearchAttribute ( ) ! ,
475- operator : FilterOperator . Like ,
476- value : text
477- } ;
478- this . searchFilterSubject . next ( [ searchFilter ] ) ;
473+ let searchFilters : TableFilter [ ] = [ ] ;
474+ // In case of empty string, avoid sending LIKE operator with empty value
475+ if ( isNonEmptyString ( text ) ) {
476+ searchFilters = [
477+ {
478+ field : this . api . model . getSearchAttribute ( ) ! ,
479+ operator : FilterOperator . Like ,
480+ value : text
481+ }
482+ ] ;
483+ }
484+ this . searchFilterSubject . next ( searchFilters ) ;
479485 }
480486
481487 public onViewChange ( view : string ) : void {
You can’t perform that action at this time.
0 commit comments