Skip to content

Commit 7047c4c

Browse files
djihblazzy
authored andcommitted
default groupProperties to empty object in logEvent (#161)
1 parent a6ab9ce commit 7047c4c

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
* Default groupProperties to empty object in logEvent.
3+
14
### 4.5.1 (November 7, 2018)
25

36
* Fix error that might occur if another party defines a global variable named `Buffer` that is not actually a `Buffer`.

amplitude.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7597,6 +7597,7 @@ AmplitudeClient.prototype._logEvent = function _logEvent(eventType, eventPropert
75977597
apiProperties = merge_1$1(trackingOptions, apiProperties || {});
75987598
eventProperties = eventProperties || {};
75997599
groups = groups || {};
7600+
groupProperties = groupProperties || {};
76007601
var event = {
76017602
device_id: this.options.deviceId,
76027603
user_id: this.options.userId,

amplitude.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/amplitude-client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,7 @@ AmplitudeClient.prototype._logEvent = function _logEvent(eventType, eventPropert
956956
apiProperties = merge(trackingOptions, (apiProperties || {}));
957957
eventProperties = eventProperties || {};
958958
groups = groups || {};
959+
groupProperties = groupProperties || {};
959960
var event = {
960961
device_id: this.options.deviceId,
961962
user_id: this.options.userId,

0 commit comments

Comments
 (0)