Skip to content

Commit

Permalink
Use implicit React.Fragment for QuestionItems
Browse files Browse the repository at this point in the history
  • Loading branch information
vesnushka committed Aug 28, 2023
1 parent e03eaee commit 08b18f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdc-qrf/src/components.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fhirpath from 'fhirpath';
import _ from 'lodash';
import isEqual from 'lodash/isEqual';
import { ReactChild, useEffect, useContext, useMemo, useRef } from 'react';
import React, { ReactChild, useEffect, useContext, useMemo, useRef } from 'react';

import { QuestionnaireItem } from 'shared/src/contrib/aidbox';

Expand Down Expand Up @@ -29,7 +29,7 @@ export function QuestionItems(props: QuestionItemsProps) {
const { formValues } = useQuestionnaireResponseFormContext();

return (
<>
<React.Fragment>
{getEnabledQuestions(questionItems, parentPath, formValues, context).map(
(item, index) => {
return (
Expand All @@ -42,7 +42,7 @@ export function QuestionItems(props: QuestionItemsProps) {
);
},
)}
</>
</React.Fragment>
);
}

Expand Down

0 comments on commit 08b18f4

Please sign in to comment.