Skip to content

Commit

Permalink
grid.header.Button: changeFilterValue() => cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiu committed Jan 16, 2025
1 parent 2a08dda commit 9cb060d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/grid/header/Button.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ class Button extends BaseButton {
if (store) {
filter = store.getFilter(me.dataField);
model = store.model;
field = model && model.getField(me.dataField);
field = model.getField(me.dataField);

if (value && field.type.toLowerCase() === 'date') {
if (value && field?.type.toLowerCase() === 'date') {
value = new Date(value)
}

Expand Down

0 comments on commit 9cb060d

Please sign in to comment.