Skip to content

Commit

Permalink
Merge pull request #2672 from kobotoolbox/2618-update-dependencies
Browse files Browse the repository at this point in the history
Updates dependencies

Checked the following for same functionality:
- Rebuilding from scratch
- Media uploading
- Library questions
- QueryLimit/Maps
- Permissions
  • Loading branch information
duvld authored Aug 13, 2020
2 parents 368d0aa + 9715b49 commit 2524663
Show file tree
Hide file tree
Showing 3 changed files with 3,600 additions and 2,758 deletions.
11 changes: 11 additions & 0 deletions jsapp/js/components/map.es6
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,17 @@ export class FormMap extends React.Component {
// TODO: support area / line geodata questions
let selectedQuestion = this.props.asset.map_styles.selectedQuestion || null;

this.props.asset.content.survey.forEach(function(row) {
if (
typeof row.label !== 'undefined' &&
row.label !== null &&
selectedQuestion === row.label[0] &&
row.type !== QUESTION_TYPES.get('geopoint').id
) {
selectedQuestion = null; //Ignore if not a geopoint question type
}
});

let queryLimit = QUERY_LIMIT_DEFAULT;
if (this.state.overridenStyles && this.state.overridenStyles.querylimit) {
queryLimit = this.state.overridenStyles.querylimit;
Expand Down
Loading

0 comments on commit 2524663

Please sign in to comment.