Skip to content

Commit

Permalink
Use copy of list in listDataService
Browse files Browse the repository at this point in the history
Otherwise each time a list form is opened, all the opened lists are binded to the same instance of the list and are therefore being sync'ed instead of acting independently.

Fixes #2280.
  • Loading branch information
trang committed May 28, 2020
1 parent e03d24e commit b4d7277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webroot/js/directives/sentence-and-translations.dir.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
if (!listsDataService) {
listsDataService = $injector.get('listsDataService');
}
var selectableLists = listsDataService.getLists();
var selectableLists = angular.copy(listsDataService.getLists());

if (selectableLists) {
if (selectedLists) {
Expand Down

0 comments on commit b4d7277

Please sign in to comment.