Skip to content

Commit

Permalink
Fix issue with highlighting selected values for multi-select
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmale committed Aug 12, 2024
1 parent 6f04f6c commit ac62e61
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const MultiSelect: React.FC<FormFieldInputProps> = ({ field, value, errors, warn
</Layer>
</div>
<div className={styles.selectionDisplay}>
{value?.length && field.questionOptions.answers?.length > 5 ? (
{value?.length ? (
<div className={styles.tagContainer}>
{formFieldAdapters[field.type]?.getDisplayValue(field, value)?.map((displayValue, index) => (
<Tag key={index} type="cool-gray">
Expand Down
1 change: 0 additions & 1 deletion src/provider/form-factory-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { type FormContextProps } from './form-provider';
import { processPostSubmissionActions, validateForm } from './form-factory-helper';
import { useTranslation } from 'react-i18next';
import { usePostSubmissionActions } from '../hooks/usePostSubmissionActions';
import { reportError } from '../utils/error-utils';

interface FormFactoryProviderContextProps {
patient: fhir.Patient;
Expand Down

0 comments on commit ac62e61

Please sign in to comment.