From 4d789f84e3c8b7b783747f27f95054c3513b1fc4 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Tue, 24 Aug 2021 12:38:29 +0200 Subject: [PATCH] fixed logic when to show empty search result (#1053) fixes: #1040 --- src/clients/ClientsSection.tsx | 1 - src/components/table-toolbar/KeycloakDataTable.tsx | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/clients/ClientsSection.tsx b/src/clients/ClientsSection.tsx index 9dd8f7d866..e390fc6c94 100644 --- a/src/clients/ClientsSection.tsx +++ b/src/clients/ClientsSection.tsx @@ -110,7 +110,6 @@ export const ClientsSection = () => { } loader={loader} isPaginated ariaLabelKey="clients:clientList" diff --git a/src/components/table-toolbar/KeycloakDataTable.tsx b/src/components/table-toolbar/KeycloakDataTable.tsx index 2de250bdbc..10c4549340 100644 --- a/src/components/table-toolbar/KeycloakDataTable.tsx +++ b/src/components/table-toolbar/KeycloakDataTable.tsx @@ -413,9 +413,9 @@ export function KeycloakDataTable({ )} {!loading && (!data || data.length === 0) && - (search !== "" || !isSearching) && - searchPlaceholderKey && - !emptyState && ( + search !== "" && + !isSearching && + searchPlaceholderKey && (