Files
discourse/app/assets/javascripts/admin/models
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
..
2019-01-11 17:54:23 +01:00
2019-04-26 12:16:21 +02:00