Skip to content

Commit

Permalink
Revert "#1294 | temp fix for issue with save of Individuals that have…
Browse files Browse the repository at this point in the history
… locationProperties set within their addressLevels"

This reverts commit 1ad1146.
  • Loading branch information
himeshr committed Feb 13, 2024
1 parent 1170a66 commit 8bcb3e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/openchs-android/src/service/IndividualService.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import OrganisationConfigService from './OrganisationConfigService';
import {getUnderlyingRealmCollection, KeyValue} from "openchs-models";
import RealmQueryService from "./query/RealmQueryService";
import {DashboardReportFilter} from "../model/DashboardReportFilters";
import AddressLevelService from './AddressLevelService';

@Service("individualService")
class IndividualService extends BaseService {
Expand Down Expand Up @@ -92,7 +91,6 @@ class IndividualService extends BaseService {
const db = this.db;
ObservationsHolder.convertObsForSave(individual.observations);
const formMappingService = this.getService(FormMappingService);
individual.lowestAddressLevel = this.getService(AddressLevelService).findByUUID(individual.lowestAddressLevel.uuid);
const registrationForm = formMappingService.findRegistrationForm(individual.subjectType);
const isApprovalEnabled = formMappingService.isApprovalEnabledForRegistrationForm(individual.subjectType);
this.db.write(() => {
Expand Down

0 comments on commit 8bcb3e1

Please sign in to comment.