Skip to content

Commit

Permalink
Merge pull request #4676 from adube/786-query-multi-fix-layer
Browse files Browse the repository at this point in the history
Fix GMF query grid to support adding result
  • Loading branch information
adube committed Feb 25, 2019
2 parents b8fe1df + 2ff14ae commit 467dd12
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion contribs/gmf/src/query/gridComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,13 @@ Controller.prototype.getGridSources = function() {
*/
Controller.prototype.updateData_ = function() {
// close if there are no results
if (this.ngeoQueryResult.total === 0 && !this.hasOneWithTooManyResults_()) {
if (
(
this.ngeoQueryResult.pending ||
this.ngeoQueryResult.total === 0
) &&
!this.hasOneWithTooManyResults_()
) {
const oldActive = this.active;
this.clear();
if (oldActive) {
Expand Down

0 comments on commit 467dd12

Please sign in to comment.