From e23c1477dae10fb746cce64563fe1060ba2d561e Mon Sep 17 00:00:00 2001 From: Alex Corey Date: Tue, 10 Sep 2019 12:13:41 -0400 Subject: [PATCH] Properly reloads after successful deletion --- .../features/users/tokens/users-tokens-list.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/features/users/tokens/users-tokens-list.controller.js b/awx/ui/client/features/users/tokens/users-tokens-list.controller.js index 008f30fda7..27ae0514c5 100644 --- a/awx/ui/client/features/users/tokens/users-tokens-list.controller.js +++ b/awx/ui/client/features/users/tokens/users-tokens-list.controller.js @@ -120,7 +120,7 @@ function ListTokensController ( .then(() => { let reloadListStateParams = null; - if ($scope.tokens.length === 1 && $state.params.token_search && + if ($scope.vm.tokens.length === 1 && $state.params.token_search && !_.isEmpty($state.params.token_search.page) && $state.params.token_search.page !== '1') { const page = `${(parseInt(reloadListStateParams