Skip to content

Commit

Permalink
fix hcx route priority and type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Feb 18, 2024
1 parent dacc7f8 commit 441481c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"sample_format_asset_import": "https://spreadsheets.google.com/feeds/download/spreadsheets/Export?key=11JaEhNHdyCHth4YQs_44YaRlP77Rrqe81VSEfg1glko&exportFormat=xlsx",
"sample_format_external_result_import": "/External-Results-Template.csv",
"enable_abdm": true,
"enable_hcx": false,
"enable_hcx": true,
"min_encounter_date": "2020-01-01"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function AddICD11Diagnosis(props: AddICD11DiagnosisProps) {
const { t } = useTranslation();
const [selected, setSelected] = useState<ICD11DiagnosisModel>();
const [adding, setAdding] = useState(false);
const hasError = !!props.disallowed.find((d) => d.id === selected?.id);
const hasError = !!props.disallowed.find((d) => d?.id === selected?.id);

const { fetchOptions, isLoading, options } =
useAsyncOptions<ICD11DiagnosisModel>("id");
Expand All @@ -33,7 +33,7 @@ export default function AddICD11Diagnosis(props: AddICD11DiagnosisProps) {
setAdding(true);
const added = await props.onAdd({
diagnosis_object: selected,
diagnosis: selected.id,
diagnosis: selected?.id,
verification_status: status,
is_principal: false,
});
Expand Down
2 changes: 1 addition & 1 deletion src/Routers/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function AppRouter() {
let routes = Routes;

if (enable_hcx) {
routes = { ...routes, ...HCXRoutes };
routes = { ...HCXRoutes, ...routes };
}

if (
Expand Down

0 comments on commit 441481c

Please sign in to comment.