From c6c06f3408a38cacf8c5b9c8b4699761470edd70 Mon Sep 17 00:00:00 2001 From: scottybollinger Date: Fri, 3 Dec 2021 11:02:54 -0600 Subject: [PATCH] Refactor to always hide modal The delete confirm modal would still be visible on error. This always hides the modal --- .../workplace_search/views/api_keys/api_keys_logic.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/api_keys/api_keys_logic.ts b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/api_keys/api_keys_logic.ts index deaf07af7af94..0c5786bc1a6e9 100644 --- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/api_keys/api_keys_logic.ts +++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/api_keys/api_keys_logic.ts @@ -136,7 +136,6 @@ export const ApiKeysLogic = kea true, hideDeleteModal: () => false, - fetchApiKeys: () => false, }, ], apiTokenNameToDelete: [ @@ -144,7 +143,6 @@ export const ApiKeysLogic = kea tokenName, hideDeleteModal: () => '', - fetchApiKeys: () => '', }, ], formErrors: [ @@ -189,6 +187,8 @@ export const ApiKeysLogic = kea {