Skip to content
Snippets Groups Projects
Commit 3261afaa authored by Atte Keinänen's avatar Atte Keinänen
Browse files

Convert filter display values to strings for showing booleans

parent 5d7c47f4
Branches
Tags
No related merge requests found
......@@ -85,5 +85,5 @@ export function getFieldValues(field: ?Field): FieldValues {
export function getHumanReadableValue(value: Value, fieldValues?: FieldValues = []) {
const fieldValue = _.findWhere(fieldValues, { [0]: value });
return fieldValue && fieldValue.length === 2 ? fieldValue[1] : value;
return fieldValue && fieldValue.length === 2 ? fieldValue[1] : value.toString();
}
......@@ -97,7 +97,7 @@ export default class CategoryWidget extends Component {
})}
onClick={() => { setValue(rawValue); onClose(); }}
>
{humanReadableValue || rawValue}
{humanReadableValue || rawValue.toString()}
</li>
)}
</ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment