Skip to content

Commit 0d4de81

Browse files
authored
Fix panning (2nd issue) (#794)
Fix panning
1 parent 0bea5fe commit 0d4de81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simple-stats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function SimpleStats(flightLog) {
1919

2020
const getMinMaxMean = (fieldName) => {
2121
const index = _.findIndex(fields, (f) => f === fieldName);
22-
if (index === -1 || !frames.length || !(index in frames[0])) {
22+
if (index === -1 || !frames.length || !(index in frames[0]) || !frames[index][index]) {
2323
return undefined;
2424
}
2525
const result = _.mapValues({

0 commit comments

Comments
 (0)