Skip to content

Commit

Permalink
Merge pull request #4 from boxuk/doi-links-datatype-fix
Browse files Browse the repository at this point in the history
[FIX] Fix invalid syntax in safety check
  • Loading branch information
jdamner authored Jul 4, 2024
2 parents d332c3b + f1a9674 commit 84b980a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/js/gutenberg/components/reference-form-manual/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,12 @@ function ReferenceFormManual(props: Props) {
onSubmit={consumeData}
/>
)}
<PeopleFields fields={fields[data.type]?.people} />
<DataFields fieldmap={fields[data.type]} />
{fields[data.type] && (
<>
<PeopleFields fields={fields[data.type].people} />
<DataFields fieldmap={fields[data.type]} />
</>
)}
</form>
</DataContext.Provider>
</PeopleContext.Provider>
Expand Down

0 comments on commit 84b980a

Please sign in to comment.