Skip to content

Commit 6feed84

Browse files
authored
Update sparkline.js
Use the idGoal from Sparkline URL to update the datatable, instead of always using page default, so that the Ecommerce Overview is able to load the abandoned cart metrics
1 parent b3939c3 commit 6feed84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/CoreHome/javascripts/sparkline.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ window.initializeSparklines = function () {
100100
if (urlParams.rows) {
101101
params.rows = decodeURIComponent(urlParams.rows);
102102
}
103+
if (urlParams.idGoal) {
104+
params.idGoal = decodeURIComponent(urlParams.idGoal);
105+
}
103106
}
104107

105108
// on click, reload the graph with the new url

0 commit comments

Comments
 (0)