mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
another fix on duplicates
This commit is contained in:
parent
995e699130
commit
0a59d6e43d
1 changed files with 2 additions and 1 deletions
|
|
@ -52,4 +52,5 @@ module.exports.updateUser = (user, userObj) ->
|
|||
preened = _.filter(union, (val) -> _.contains(taskIds, val))
|
||||
|
||||
# There were indeed issues found, set the new list
|
||||
user.set(path, preened) if _.size(preened) != _.size(userObj[path])
|
||||
# TODO _.difference might still be empty for duplicates in one list?
|
||||
user.set(path, preened) if _.difference(preened, userObj[path]).length != 0
|
||||
Loading…
Reference in a new issue