diff --git a/app/assets/javascripts/repositories/index.js b/app/assets/javascripts/repositories/index.js index b43d038df..638d8cff5 100644 --- a/app/assets/javascripts/repositories/index.js +++ b/app/assets/javascripts/repositories/index.js @@ -128,7 +128,7 @@ .attr('disabled', !this.checked); }); - new PerfectScrollbar(form.find('.teams-list')[0]); + if (form.find('.teams-list').length) new PerfectScrollbar(form.find('.teams-list')[0]); permissionCBs.change(function() { var changes = JSON.parse(permissionChanges.val());