Skip to content

Commit

Permalink
Merge pull request #4 from stape-io/fix-params-override
Browse files Browse the repository at this point in the history
fix params override
  • Loading branch information
Bukashk0zzz authored Apr 25, 2024
2 parents 3069153 + 9b3c7af commit 9b74395
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
homepage: 'https://stape.io/'
versions:
- sha: 2db0e8ac59cabe856fba360ad41916c8dd2ffee9
changeNotes: Fix params override.
- sha: 56deec2a17a7f145c28481b58a23a1133b0af255
changeNotes: Fix optimistic scenario.
- sha: b50adc0aa8f18a3995a2a6bae17601c6299bccdb
Expand Down
2 changes: 1 addition & 1 deletion template.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const params = getMatomoParams(eventNameData);

if (data.parametersToOverride && data.parametersToOverride.length) {
data.parametersToOverride.forEach((param) => {
if (isValidParam(params[param.name])) {
if (isValidParam(param.value)) {
params[param.name] = param.value;
}
});
Expand Down
2 changes: 1 addition & 1 deletion template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ const params = getMatomoParams(eventNameData);

if (data.parametersToOverride && data.parametersToOverride.length) {
data.parametersToOverride.forEach((param) => {
if (isValidParam(params[param.name])) {
if (isValidParam(param.value)) {
params[param.name] = param.value;
}
});
Expand Down

0 comments on commit 9b74395

Please sign in to comment.