Skip to content

Commit

Permalink
Merge pull request #1663 from BLSQ/IA-3409-planning-missing-markers
Browse files Browse the repository at this point in the history
IA-3409: Planning screen do not load geographic data
  • Loading branch information
quang-le authored Oct 1, 2024
2 parents 7be3317 + 187f3e8 commit 78a8b3a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import { makeUrlWithParams } from '../../../../libs/utils';

import { OrgUnit, PaginatedOrgUnits } from '../../../orgUnits/types/orgUnit';

import { BaseLocation, Locations } from '../../types/locations';
import { Profile } from '../../../../utils/usersUtils';
import { DropdownTeamsOptions } from '../../types/team';
import { AssignmentsApi } from '../../types/assigment';
import { BaseLocation, Locations } from '../../types/locations';
import { DropdownTeamsOptions } from '../../types/team';

import { getOrgUnitAssignation } from '../../utils';

Expand Down Expand Up @@ -57,7 +57,7 @@ const mapLocation = ({
};
if (!orgUnitParentIds.find(ou => ou === orgUnit.id)) {
if (parseInt(baseOrgunitType, 10) === orgUnit.org_unit_type_id) {
if (orgUnit.geo_json) {
if (orgUnit.has_geo_json && orgUnit.geo_json) {
const shape = {
...baseLocation,
geoJson: orgUnit.geo_json,
Expand Down

0 comments on commit 78a8b3a

Please sign in to comment.