SingleStat undefined error when receiving empty dataset from Cube
Background
As reporte don slack (internal link) some SingleStat visualizations are unexpectedly showing an error instead of an empty 0
value.
Problem
The code to extract query result data for the SingleStat visualization hits an undefined variable and crashes here:
Proposal
Add back the check that existed in a prior revision:
if (!row) {
return 0;
}
Edited by Elwyn Benson