Skip to content

Commit

Permalink
Update getData method to show non-visible tasks only when specific ch…
Browse files Browse the repository at this point in the history
…allengeID is given
  • Loading branch information
tannerwuster authored and bhousel committed May 22, 2024
1 parent c480b42 commit c61fd5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/services/MapRouletteService.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ export class MapRouletteService extends AbstractSystem {
const extent = this.context.viewport.visibleExtent();
return this._cache.rbush.search(extent.bbox())
.map(d => d.data)
.filter(task => !this._challengeID || task.parentId === this._challengeID)
.filter(task => task.isVisible);
.filter(task => (this._challengeID && task.parentId === this._challengeID) || (!this._challengeID && task.isVisible));
}


Expand Down

0 comments on commit c61fd5e

Please sign in to comment.