Skip to content

Commit

Permalink
(feat) KHP3-6944 : Add KDOD cascading units and cadre and required id…
Browse files Browse the repository at this point in the history
…entifiers for civilian rank
  • Loading branch information
donaldkibet committed Oct 28, 2024
1 parent 129233d commit 5c69ea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Field, type FieldProps } from 'formik';
import { Layer, Select, SelectItem } from '@carbon/react';
import { useTranslation } from 'react-i18next';
import classNames from 'classnames';
import { evaluateAsBoolean } from '@openmrs/esm-framework';
import { PatientRegistrationContext } from '../../patient-registration-context';
import styles from './../field.scss';

Expand Down Expand Up @@ -47,7 +46,8 @@ const CustomPersonAttributeField: React.FC<CustomPersonAttributeFieldProps> = ({
}) => {
const { t } = useTranslation();
const fieldName = `attributes.${personAttributeType.uuid}`;
const { setFieldValue, values } = useContext(PatientRegistrationContext) as PatientRegistrationContextType;
const context = useContext(PatientRegistrationContext) as PatientRegistrationContextType;
const { setFieldValue, values } = context;

// TODO: Improve this logic
const filteredCustomConceptAnswers = customConceptAnswers.filter((answer) => {
Expand Down

This file was deleted.

0 comments on commit 5c69ea9

Please sign in to comment.