From b11f148f4645ac2e0a628edbf8c608786ea2cbbd Mon Sep 17 00:00:00 2001 From: colemanw Date: Wed, 31 Jan 2024 21:22:49 -0500 Subject: [PATCH] SearchKit - Fix switching to nonexistent tab Tabs were recently renamed so this keeps up with the change. --- .../ang/crmSearchAdmin/crmSearchAdmin.component.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'); } }; -- 2.25.1