Skip to content

Commit

Permalink
Merge pull request #101 from redbearsam/fix/missing_tooltip_value
Browse files Browse the repository at this point in the history
remove unnecessary slice
  • Loading branch information
matt-hooper authored Mar 18, 2019
2 parents 8084948 + 0449c1c commit 9ecef29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function getGroupValues(data, settings) {

function getSplitValues(data, settings) {
if (settings.splitValues.length === 0) return [];
const splitValues = data.key ? data.key.split("|").slice(0, -1) : data.mainValue.split("|");
const splitValues = data.key ? data.key.split("|") : data.mainValue.split("|");
return settings.splitValues.map((split, i) => ({name: split.name, value: splitValues[i]}));
}

Expand Down

0 comments on commit 9ecef29

Please sign in to comment.