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
binding array to localstorage is overriding stored array with defined array. localStorageService.bind($scope, 'selections', [{"name": "A", selected: true}, {"name": "B", selected: true }]);
selected values are always true on page refresh, values are succefully being stored in localstorage but value = extend(value, def);on line 401 overrides stored array with the defined one, adding simple array check fixes this for me
if(!Array.isArray(def))
value = extend(value, def);
The text was updated successfully, but these errors were encountered:
binding array to localstorage is overriding stored array with defined array.
localStorageService.bind($scope, 'selections', [{"name": "A", selected: true}, {"name": "B", selected: true }]);
selected values are always true on page refresh, values are succefully being stored in localstorage but
value = extend(value, def);
on line 401 overrides stored array with the defined one, adding simple array check fixes this for meThe text was updated successfully, but these errors were encountered: