Merge pull request #2175 from aignatov-bio/ai-sci-4007-error-at-click-to-share-button

Add check for existing elements for shared repository modal [SCI-4007]
This commit is contained in:
aignatov-bio 2019-11-15 14:32:46 +01:00 committed by GitHub
commit d88d479854
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());