fix potential null errors in recordData/graphPeakData
This commit is contained in:
@ -132,7 +132,7 @@ class ServerRegistration {
|
||||
let index = -1
|
||||
for (let i = 0; i < this.graphData.length; i++) {
|
||||
const point = this.graphData[i]
|
||||
if (index === -1 || point > this.graphData[index]) {
|
||||
if (point !== null && (index === -1 || point > this.graphData[index])) {
|
||||
index = i
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user