Skip to content

Commit

Permalink
fix(geojson-import): only run validator when the use geometry option …
Browse files Browse the repository at this point in the history
…is selected (#2004)

Fixes https://dhis2.atlassian.net/browse/DHIS2-17071

The code will check if the "Import as associated geometry" is checked.
If so, then the validator for that will run. Otherwise, it will not run the validator
  • Loading branch information
jenniferarnesen authored Apr 5, 2024
1 parent c1436d6 commit a9114cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Geometry/GeometryAttributePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const GeometryAttributePicker = ({
selectedLabel={SELECTEDLABEL}
dataTest={DATATEST}
multiSelect={multiSelect}
validator={VALIDATOR}
validator={useAttribute ? VALIDATOR : Function.prototype}
autoSelectFirst
{...rest}
/>
Expand Down

0 comments on commit a9114cb

Please sign in to comment.