Skip to content

Commit

Permalink
DataGrid: Fix headerFilter variable declaration (#25931)
Browse files Browse the repository at this point in the history
Co-authored-by: Alyar <>
  • Loading branch information
Alyar666 authored Nov 2, 2023
1 parent fcd3258 commit 91c5da2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,8 @@ const HeaderFilterController = modules.ViewController.inherit((function () {
if (column) {
const visibleIndex = columnsController.getVisibleIndex(columnIndex);
const view = isGroupPanel ? this.getView('headerPanel') : this.getView('columnHeadersView');

// eslint-disable-next-line no-var, vars-on-top
var $columnElement = $columnElement || view.getColumnElements().eq(isGroupPanel ? column.groupIndex : visibleIndex);
const $columnElement = view.getColumnElements()
.eq(isGroupPanel ? column.groupIndex : visibleIndex);

this.showHeaderFilterMenuBase({
columnElement: $columnElement,
Expand Down

0 comments on commit 91c5da2

Please sign in to comment.