From: colemanw Date: Thu, 1 Feb 2024 02:22:49 +0000 (-0500) Subject: SearchKit - Fix switching to nonexistent tab X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b11f148f4645ac2e0a628edbf8c608786ea2cbbd;p=civicrm-core.git SearchKit - Fix switching to nonexistent tab Tabs were recently renamed so this keeps up with the change. --- diff --git a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js index 79fb64869b..e4969a185b 100644 --- a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js @@ -237,7 +237,7 @@ if (display.id) { display.trashed = !display.trashed; if ($scope.controls.tab === ('display_' + index) && display.trashed) { - $scope.selectTab('compose'); + $scope.selectTab('for'); } else if (!display.trashed) { $scope.selectTab('display_' + index); } @@ -255,7 +255,7 @@ }); } } else { - $scope.selectTab('compose'); + $scope.selectTab('for'); ctrl.savedSearch.displays.splice(index, 1); } }; @@ -300,7 +300,7 @@ ctrl.savedSearch.groups.length = 0; } if ($scope.controls.tab === 'group') { - $scope.selectTab('compose'); + $scope.selectTab('for'); } };