Skip to content
Snippets Groups Projects
Commit 0c5654d7 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

fix casting error on filters for DecimalField.

parent 5d613113
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,8 @@ export default React.createClass({
value = parseInt(value);
} else if (this.state.fieldDef.base_type === "BooleanField") {
value = (value.toLowerCase() === "true") ? true : false;
} else if (this.state.fieldDef.base_type === "FloatField") {
} else if (this.state.fieldDef.base_type === "FloatField" ||
this.state.fieldDef.base_type === "DecimalField") {
value = parseFloat(value);
}
......
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