You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine you have a default like myArray : [].
Then, you initialize a model passing an initial value of myArray: [1,1,2,3].
The result of model.get('myArray') is not [1,1,2,3] but it is [1,2,3].
Imagine you have a default like
myArray : []
.Then, you initialize a model passing an initial value of
myArray: [1,1,2,3]
.The result of
model.get('myArray')
is not[1,1,2,3]
but it is[1,2,3]
.This issue is caused by this function:
As a metter of fact,
_.union
returns all unique items inside the two arrays. So, if mydestination[key]
array is not unique the result will be wrong.The text was updated successfully, but these errors were encountered: