Skip to content

Commit dd1264c

Browse files
committed
fix: safari Iterable map is undefined #33
1 parent 377392d commit dd1264c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,9 @@ class FunkyHeatmap {
469469
let bodyWidth = 0;
470470
let nonZeroRotate = false;
471471
const groups = this.header.append('g');
472+
const columnGroups = Array.from(this.columnGroups.values());
472473

473-
const nLevels = Math.max(...this.columnGroups.values().map(group => {
474+
const nLevels = Math.max(...columnGroups.map(group => {
474475
let i = 1;
475476
while (true) {
476477
if (group[`level${i}`] === undefined) {

0 commit comments

Comments
 (0)