Skip to content
Snippets Groups Projects
Commit 127e4972 authored by Tom Robinson's avatar Tom Robinson
Browse files

Filter nulls from select widget

parent 043f7d28
No related branches found
No related tags found
No related merge requests found
......@@ -141,10 +141,12 @@ function equivalentArgument(field, table) {
validValues.sort();
return {
type: "select",
values: validValues.map(value => ({
key: value,
name: value
}))
values: validValues
.filter(value => value != null)
.map(value => ({
key: value,
name: value
}))
};
}
}
......
......@@ -94,7 +94,6 @@ export default class FilterWidget extends Component {
values = generateTimeFilterValuesDescriptions(this.props.filter);
}
// the first 2 positions of the filter are always for fieldId + fieldOperator
return values.map((value, valueIndex) => {
var valueString = value != null ? value.toString() : null;
return (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment