Skip to content

Commit

Permalink
Prevent calls to UsersController#index on tab shown events
Browse files Browse the repository at this point in the history
  • Loading branch information
jvendetti committed Jun 9, 2021
1 parent 907cd31 commit 72f4371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/admin/licenses.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ jQuery(".admin.index").ready(function() {

jQuery('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
var href = jQuery(e.target).data('href');
if (href) {
if (typeof href !== 'undefined' && href === '/admin/licenses') {
jQuery.ajax({
method: 'GET',
url: href,
Expand Down

0 comments on commit 72f4371

Please sign in to comment.