Skip to content

Commit

Permalink
Fix panning (2nd issue) (#794)
Browse files Browse the repository at this point in the history
Fix panning
  • Loading branch information
haslinghuis authored Nov 19, 2024
1 parent 0bea5fe commit 0d4de81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simple-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function SimpleStats(flightLog) {

const getMinMaxMean = (fieldName) => {
const index = _.findIndex(fields, (f) => f === fieldName);
if (index === -1 || !frames.length || !(index in frames[0])) {
if (index === -1 || !frames.length || !(index in frames[0]) || !frames[index][index]) {
return undefined;
}
const result = _.mapValues({
Expand Down

0 comments on commit 0d4de81

Please sign in to comment.