Skip to content

Commit

Permalink
[Lens] fix error when adding a new layer
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed May 27, 2021
1 parent 77452e6 commit 58d35e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const getDataBounds = function (
let min = Number.MAX_VALUE;
let max = Number.MIN_VALUE;
axis.series.forEach((series) => {
activeData?.[series.layer].rows.forEach((row) => {
activeData?.[series.layer]?.rows.forEach((row) => {
const value = row[series.accessor];
if (!Number.isNaN(value)) {
if (value < min) {
Expand Down

0 comments on commit 58d35e0

Please sign in to comment.