Skip to content

Commit

Permalink
fix: only set default org unit level if no other org units are select…
Browse files Browse the repository at this point in the history
…ed (#585)
  • Loading branch information
turban authored Apr 16, 2020
1 parent 7447e33 commit aefe5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/edit/thematic/ThematicDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export class ThematicDialog extends Component {
}

// Set default org unit level
if (!getOrgUnitLevelsFromRows(rows).length) {
if (!getOrgUnitsFromRows(rows).length) {
setOrgUnitLevels([DEFAULT_ORG_UNIT_LEVEL]);
}
}
Expand Down

0 comments on commit aefe5d9

Please sign in to comment.