Skip to content
Snippets Groups Projects
Unverified Commit b3be46e6 authored by Uladzimir Havenchyk's avatar Uladzimir Havenchyk Committed by GitHub
Browse files

Parse not a number passed to id filter (#44826)

parent 11cf86e6
No related branches found
No related tags found
No related merge requests found
......@@ -163,7 +163,10 @@ export function numberParameterValueToMBQL(parameter, fieldRef) {
const operatorName = getParameterOperatorName(subtype);
return [operatorName, fieldRef].concat(
[].concat(parameterValue).map(v => parseFloat(v)),
[].concat(parameterValue).map(value => {
const number = parseFloat(value);
return isNaN(number) ? null : number;
}),
);
}
......
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