Skip to content

Commit

Permalink
fix(web): issues with reactive defaultQuery in ReactiveList
Browse files Browse the repository at this point in the history
  • Loading branch information
bietkul committed Aug 26, 2021
1 parent 3edb85d commit 2538911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/components/result/ReactiveList.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ class ReactiveList extends Component {
let options = getQueryOptions(this.props);
options.from = 0;
this.defaultQuery = this.props.defaultQuery();
// Update calculated default query in store
updateDefaultQuery(this.props.componentId, this.props);

const { query } = this.defaultQuery;

Expand All @@ -249,8 +251,6 @@ class ReactiveList extends Component {
this.props.setQueryOptions(this.props.componentId, options, !query);
}

// Update calculated default query in store
updateDefaultQuery(this.props.componentId, this.props);

this.props.updateQuery(
{
Expand Down

0 comments on commit 2538911

Please sign in to comment.