This commit is contained in:
snipe 2018-08-01 00:26:50 -07:00
parent 2c38036123
commit 664cc24481

View file

@ -295,7 +295,7 @@ $(document).ready(function () {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
},
}).done(function(response) {;
var currentlySelected = element.select2('data').map(x => +x.id).filter(x => {return x !== 0});
var currentlySelected = element.select2('data').map(function (x){ return +x.id}).filter(function (x) {return x !== 0});
// makes sure we're not selecting the same thing twice for multiples
var filteredResponse = response.items.filter(function(item) {