Skip to content

Commit

Permalink
[#10776] Set null if value is -1
Browse files Browse the repository at this point in the history
  • Loading branch information
jihea-park committed Oct 8, 2024
1 parent 6e35e3f commit 336e81e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const OpenTelemetryMetricFetcher = ({
const dataObj: { [key: string]: number } = { timestamp: t };

for (const [key, dataArray] of Object.entries(dataSets)) {
dataObj[key] = dataArray[i];
dataObj[key] = (dataArray[i] === -1 ? null : dataArray[i]) as number;
}

return dataObj;
Expand Down

0 comments on commit 336e81e

Please sign in to comment.