Skip to content

Commit

Permalink
feat(navigateToCustomChart): add console.log
Browse files Browse the repository at this point in the history
series length & index (hoverIndex)
  • Loading branch information
jalezi committed Apr 29, 2021
1 parent 9990c7f commit 51dc0fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion navigateToCustomChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ module.exports = async ({

const performOnElement = async () => {
const index = which instanceof Function ? which(hoverIndex) : which;
const button = buttons[what][index];
const series = buttons[what];
console.log(`Series length: ${series.length}. Index: ${index}`);

const button = series[index];

let text;
if (!options?.skipContent) {
Expand All @@ -51,6 +54,8 @@ module.exports = async ({
const series = buttons[what];
const index = which instanceof Function ? which(hoverIndex) : which;

console.log(`Series length: ${series.length}. Index: ${index}`);

let result;
if (series) {
result = await func(series, index, options);
Expand Down

0 comments on commit 51dc0fb

Please sign in to comment.