Skip to content

Commit

Permalink
[Lens] fix error when adding a new layer (#100766)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
mbondyra and kibanamachine committed May 27, 2021
1 parent 868e5df commit 48f7a47
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 48f7a47

Please sign in to comment.