Skip to content

Commit

Permalink
fix: fixed AbstractDbxPresetFilterMenuComponent usage of getters
Browse files Browse the repository at this point in the history
  • Loading branch information
dereekb committed Feb 27, 2023
1 parent 5bab6db commit b154084
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export abstract class AbstractDbxPresetFilterMenuComponent<F extends FilterWithP
selectPreset(preset: ClickableFilterPreset<F>) {
const presetValue = preset.presetValue;

if (presetValue == null || objectHasNoKeys(presetValue)) {
if (presetValue == null || (typeof presetValue !== 'function' && objectHasNoKeys(presetValue))) {
this.filterSourceDirective.setFilter((presetValue ?? {}) as F);
this.filterSourceDirective.resetFilter();
} else {
Expand Down

0 comments on commit b154084

Please sign in to comment.