Skip to content

Commit

Permalink
fix(list): Don't call query and refresh on refresh (#578)
Browse files Browse the repository at this point in the history
* fix(list): Don't call query and refresh on refresh

* chore: Bump package version
  • Loading branch information
TSenter authored May 28, 2024
1 parent 5c71ef7 commit 39a4b68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addon/components/nrg-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export default class NrgListComponent extends Component {
query[this.filterParam] = selectedFilterValue;
}

if (isRefresh) {
this.args.onRefresh?.(query) ?? this.args.onQuery?.(query);
if (isRefresh && this.args.onRefresh) {
this.args.onRefresh?.(query);
} else {
this.args.onQuery?.(query);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-nrg-ui",
"version": "4.7.7",
"version": "4.7.8",
"description": "Opinionated UI addon based on how KUB scaffolds web applications",
"keywords": [
"ember-addon",
Expand Down

0 comments on commit 39a4b68

Please sign in to comment.