Skip to content

Commit 341a59d

Browse files
committed
Bug fix when saving statistic and stat group linking
1 parent 34e0d88 commit 341a59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/persistence.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ modifySDK = (sdk) ->
421421
wrapMethod sdk, 'saveStatistic', (saveStatistic) ->
422422
(statistic, callback) ->
423423
# Unlink statisticGroup when being removed.
424-
if not statisticGroupId? and statistic.statisticGroup?
424+
if not statistic.statisticGroupId? and statistic.statisticGroup?
425425
linking.unlinkItems statistic.statisticGroup, statistic
426426

427427
saveStatistic.call(this, statistic, callback).then((result) ->

0 commit comments

Comments
 (0)