Skip to content

Commit c7ae930

Browse files
authored
Merge pull request #51 from mixmaxhq/kris/CORE-4193
fix: set default additionalDimensions to prevent `undefined` error
2 parents 46340fa + 56ab15a commit c7ae930

File tree

3 files changed

+1200
-1048
lines changed

3 files changed

+1200
-1048
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Metric.prototype.put = function(...args) {
164164
return this._put(...args);
165165
};
166166

167-
Metric.prototype._put = function(value, metricName, units, additionalDimensions) {
167+
Metric.prototype._put = function(value, metricName, units, additionalDimensions = []) {
168168
var self = this;
169169
// Only publish if we are enabled
170170
if (self.options.enabled) {

0 commit comments

Comments
 (0)