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:
Paul
2024-08-06 18:48:50 -06:00
committed by GitHub
parent 8d1fc6e8fb
commit 4a20a63563

View File

@@ -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
}