Skip to content

Commit 061961a

Browse files
committed
PATCH: Fix TS error when using i18nRegistry.translate without fallback
1 parent 4dc74dc commit 061961a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/neos-ui-editors/src/Editors/SelectBox/selectBoxHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const processSelectBoxOptions = (i18nRegistry: I18nRegistry, selectBoxOpt
5252
const processedSelectBoxOption: SelectBoxOption = {
5353
value: key,
5454
...selectBoxOption, // a value in here overrules value based on the key above.
55-
label: i18nRegistry.translate(selectBoxOption.label)
55+
label: i18nRegistry.translate(selectBoxOption.label, '')
5656
};
5757
processedSelectBoxOption.value = createSelectBoxValueStringFromPossiblyStrangeNodePropertyValue(processedSelectBoxOption.value) as string;
5858

0 commit comments

Comments
 (0)