Skip to content

Commit a93522b

Browse files
committed
fix: type error
1 parent 18400ec commit a93522b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/components/Editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export default function Editor() {
165165

166166
const organisations = organisationData.flatMap(data =>
167167
data.organisations.map(organisation => ({
168-
text: getLocalizedText(organisation.name, i18n.language) + (organisation.alternativeName ? ` (${getLocalizedText(organisation.alternativeName, i18n.language)})` : ""),
168+
text: getLocalizedText(organisation.name, i18n.language) + ('alternativeName' in organisation && organisation.alternativeName ? ` (${getLocalizedText(organisation.alternativeName, i18n.language)})` : ""),
169169
value: organisation.id,
170170
group: getLocalizedText(data.name, i18n.language) + (data.abbreviation ? ` (${getLocalizedText(data.abbreviation, i18n.language)})` : ''),
171171
})).sort((a, b) => a.text.localeCompare(b.text, i18n.language))

0 commit comments

Comments
 (0)