From 981fd91fbfa6c9a988547ce1c773edca4e1f8e95 Mon Sep 17 00:00:00 2001 From: Caleb Cox Date: Tue, 20 Feb 2024 16:34:12 -0600 Subject: [PATCH] Prevent unnecessary unmounting --- .../ContactDonationsTab.tsx | 32 +++++++------------ 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/src/components/Contacts/ContactDetails/ContactDonationsTab/ContactDonationsTab.tsx b/src/components/Contacts/ContactDetails/ContactDonationsTab/ContactDonationsTab.tsx index d07fdeef3..d6e8c1cee 100644 --- a/src/components/Contacts/ContactDetails/ContactDonationsTab/ContactDonationsTab.tsx +++ b/src/components/Contacts/ContactDetails/ContactDonationsTab/ContactDonationsTab.tsx @@ -134,26 +134,18 @@ export const ContactDonationsTab: React.FC = ({ - {loading ? ( - <> - - - - - ) : ( - - } - visibleColumnsStorageKey="contact-donations" - /> - )} + + } + visibleColumnsStorageKey="contact-donations" + /> {loading ? (