fix(ui): fixes issue when filtering by checkbox value in a different language (#7547)
Fixes https://github.com/payloadcms/payload/issues/7447
This commit is contained in:
@@ -118,7 +118,10 @@ export const Condition: React.FC<Props> = (props) => {
|
||||
|
||||
let valueOptions
|
||||
if (booleanSelect) {
|
||||
valueOptions = [t('general:true'), t('general:false')]
|
||||
valueOptions = [
|
||||
{ label: t('general:true'), value: 'true' },
|
||||
{ label: t('general:false'), value: 'false' },
|
||||
]
|
||||
} else if (internalField?.props && 'options' in internalField.props) {
|
||||
valueOptions = internalField.props.options
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user