Commit 3a827fc2 by Torkel Ödegaard

Added test case dashboard

parent f1610110
......@@ -50,8 +50,8 @@ export function processTimeSeries({ timeSeries, nullValueMode }: Options): TimeS
continue;
}
if (typeof currentValue !== 'number') {
continue;
if (currentValue !== null && typeof currentValue !== 'number') {
throw {message: 'Time series contains non number values'};
}
// Due to missing values we could have different timeStep all along the series
......
......@@ -52,7 +52,6 @@ const mustKeepProps: { [str: string]: boolean } = {
hasRefreshed: true,
events: true,
cacheTimeout: true,
nullPointMode: true,
cachedPluginOptions: true,
transparent: true,
};
......
......@@ -24,7 +24,7 @@ export class GaugePanel extends PureComponent<Props> {
const vmSeries = processTimeSeries({
timeSeries: timeSeries,
nullValueMode: NullValueMode.Ignore,
nullValueMode: NullValueMode.Null,
});
return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment