Skip to content

Commit

Permalink
Closes #14: bug on empty alternativeNames when editing resource
Browse files Browse the repository at this point in the history
  • Loading branch information
aberonni committed Jan 24, 2024
1 parent 7f2efeb commit f53cbc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ResourceEditForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ export default function ResourceEditForm({
label: relatedResource.title,
value: relatedResource.id,
})),
alternativeNames: resource.alternativeNames
?.split(";")
alternativeNames: (resource.alternativeNames ?? "")
.split(";")
.filter((s) => s !== "")
.map((name) => ({
label: name,
Expand Down

0 comments on commit f53cbc1

Please sign in to comment.