discourse/app/assets
Jarek Radosz 1dcdcb5c31
FIX: Cast all numerical values in reports (#8087)
* FIX: Cast all numerical values in reports

The backend can return some numerical values in report as strings. That results in unexpected order of values when sorting report tables.

* Create `toNumber()` helper

The `typeof` and `parseFloat` seem to be the fastest path: https://jsperf.com/number-vs-typeof-vs-parsefloat#results
2019-09-12 15:17:34 +02:00
..
images FIX: images:compress rake task 2019-03-15 15:23:57 +01:00
javascripts FIX: Cast all numerical values in reports (#8087) 2019-09-12 15:17:34 +02:00
stylesheets fix the build. 2019-09-11 23:32:58 +05:30