diff --git a/resources/views/clients/show.blade.php b/resources/views/clients/show.blade.php index 16ed72bd25ea..29957aa5b68b 100644 --- a/resources/views/clients/show.blade.php +++ b/resources/views/clients/show.blade.php @@ -326,7 +326,8 @@ var tab = window.location.hash || (localStorage.getItem('client_tab') || ''); tab = tab.replace('#', ''); var selector = '.nav-tabs a[href="#' + tab + '"]'; - if (tab && tab != 'activity' && $(selector).length) { + + if (tab && tab != 'activity' && $(selector).length && window['load_' + tab]) { $(selector).tab('show'); } else { window['load_activity']();