Skip to content

Commit

Permalink
fix: replace Math.min.apply by minInArray()
Browse files Browse the repository at this point in the history
  • Loading branch information
xile611 committed Nov 27, 2023
1 parent 82d7362 commit 3ccfe40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vgrammar-sankey/src/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export class SankeyLayout {
);

if (values.length) {
link.value = Math.min.apply(null, values);
link.value = minInArray(values);
}
});
}
Expand Down

0 comments on commit 3ccfe40

Please sign in to comment.