Skip to content

Commit

Permalink
fix(searchable single selects): use old-app default labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Oct 25, 2023
1 parent 32f7e20 commit 7e5c907
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ export function useOptionsQuery() {
value: id,
// This should be distinguishable from other selects
// where "none" means no selection
label: isDefault
? i18n.t('Default (none)')
: displayName,
label: isDefault ? i18n.t('None') : displayName,
}
}) || []),
])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ function computeDisplayOptions({
: options

if (!required) {
return [{ value: '', label: i18n.t('None') }, ...withSelectedOption]
// This default value has been copied from the old app
return [
{ value: '', label: i18n.t('<No value>') },
...withSelectedOption,
]
}

return withSelectedOption
Expand Down

0 comments on commit 7e5c907

Please sign in to comment.