Skip to content

Commit

Permalink
13: Feedabck changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirmal0809 authored and dnil committed Oct 31, 2024
1 parent 5fe5487 commit 182668c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion src/components/questionnaire/EditIndividual.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useContext } from 'react';
import { useContext, useEffect } from 'react';
import { useForm } from 'react-hook-form';
import { useNavigate } from 'react-router-dom';
import { AppContext } from '../../context/AppContext';
Expand All @@ -20,6 +20,12 @@ export interface IIndividualFormData {
}

export default function EditIndividual() {
useEffect(() => {
return () => {
handleSubmit(doSubmit)();
};
}, []);

const navigate = useNavigate();
const { nextUrl } = useNextUrl();

Expand Down
4 changes: 2 additions & 2 deletions src/components/questionnaire/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ export default function Summary({ phenoPacket, customFormData }: IProps) {
</button>
</div>
</div>
{(type === 'all' || type === 'normal') && (
{(type === 'all' || type === 'abnormal') && (
<PhenotypicFeaturesList
phenotypicFeatures={phenoPacket.phenotypicFeatures?.filter(
(x) => !x.excluded,
)}
/>
)}
{(type === 'all' || type === 'abnormal') && (
{(type === 'all' || type === 'normal') && (
<PhenotypicFeaturesList
phenotypicFeatures={phenoPacket.phenotypicFeatures?.filter(
(x) => x.excluded,
Expand Down
2 changes: 1 addition & 1 deletion src/tip2toeform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const formSections: IFormSection[] = [
type: 'select',
},
{
title: '',
title: ' ',
name: 'affectedRelatives',
type: 'selectMultiple',
options: [
Expand Down

0 comments on commit 182668c

Please sign in to comment.