Skip to content

Commit

Permalink
fix: safari Iterable map is undefined #33
Browse files Browse the repository at this point in the history
  • Loading branch information
mxposed committed Feb 4, 2025
1 parent 377392d commit dd1264c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,9 @@ class FunkyHeatmap {
let bodyWidth = 0;
let nonZeroRotate = false;
const groups = this.header.append('g');
const columnGroups = Array.from(this.columnGroups.values());

const nLevels = Math.max(...this.columnGroups.values().map(group => {
const nLevels = Math.max(...columnGroups.map(group => {
let i = 1;
while (true) {
if (group[`level${i}`] === undefined) {
Expand Down

0 comments on commit dd1264c

Please sign in to comment.