mirror of https://github.com/grafana/grafana
Transformations: Fix Timeseries to table transformation trend reduction when result is 0 (#78026)
* Transformations: Fix Timeseries to table transformation trend reduction when result is 0 When reduceField function returns 0, the reduced value is set to null. I think we can remove this "|| null" statement, as: - There is a check a few lines above to make sure the field type is a number. This might be a reasonable guarantee that the calculation we are doing will make sense and there will be no need to set to null. - Sparkline cell type already has an option to hide value if we believe the calculation does not make sense. Fixes #78025 * make sure we check for undefined --------- Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>pull/78213/head
parent
b97e485fe0
commit
20f541d7e7
Loading…
Reference in new issue