You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This: {GRAY_INDEX|roundToDecimals(2)} will fail if GRAY_INDEX is a string (which it is if it comes from a XML/GML response - only JSON responses have valid JS types).
Actually I think it must be parsed to float again before toLocaleString, if you want toLocaleString to work.
letvalue="8.2342";// can be string or numberletnumDecimals="2";// can be string or numberparseFloat(parseFloat(value).toFixed(parseInt(numDecimals))).toLocaleString();
Describe the bug
This:
{GRAY_INDEX|roundToDecimals(2)}
will fail ifGRAY_INDEX
is a string (which it is if it comes from a XML/GML response - only JSON responses have valid JS types).The reason
I think that this
Hajk/new-client/src/components/FeatureInfo/FeaturePropsFilters.js
Line 133 in 01feb29
should be this:
I.e. first parse
value
, then invoketoFixed()
. Currently, we invoketoFixed()
on a value that might be a string. I don't think this was intended.The text was updated successfully, but these errors were encountered: