From 303c431fd7b62be625321ae8a02c6c2731acffc6 Mon Sep 17 00:00:00 2001 From: Manan Jadhav Date: Wed, 17 Jul 2024 15:21:51 +0530 Subject: [PATCH 1/2] fix: hide subsidiary while loading --- src/pages/workspace/accounting/PolicyAccountingPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/accounting/PolicyAccountingPage.tsx b/src/pages/workspace/accounting/PolicyAccountingPage.tsx index 4fe83366047e..ac96fd9a78ed 100644 --- a/src/pages/workspace/accounting/PolicyAccountingPage.tsx +++ b/src/pages/workspace/accounting/PolicyAccountingPage.tsx @@ -322,7 +322,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) { ), }, - ...(isEmptyObject(integrationSpecificMenuItems) || shouldShowSynchronizationError ? [] : [integrationSpecificMenuItems]), + ...(isEmptyObject(integrationSpecificMenuItems) || shouldShowSynchronizationError || isSyncInProgress ? [] : [integrationSpecificMenuItems]), ...(isEmptyObject(policy?.connections) || shouldShowSynchronizationError ? [] : [ From 179b7814afd5b6b4dd7f75092e255bf0e8dfd3eb Mon Sep 17 00:00:00 2001 From: Manan Jadhav Date: Wed, 17 Jul 2024 15:30:08 +0530 Subject: [PATCH 2/2] fix: hide on initial load only --- src/pages/workspace/accounting/PolicyAccountingPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/accounting/PolicyAccountingPage.tsx b/src/pages/workspace/accounting/PolicyAccountingPage.tsx index ac96fd9a78ed..28f94fbfbe04 100644 --- a/src/pages/workspace/accounting/PolicyAccountingPage.tsx +++ b/src/pages/workspace/accounting/PolicyAccountingPage.tsx @@ -322,7 +322,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) { ), }, - ...(isEmptyObject(integrationSpecificMenuItems) || shouldShowSynchronizationError || isSyncInProgress ? [] : [integrationSpecificMenuItems]), + ...(isEmptyObject(integrationSpecificMenuItems) || shouldShowSynchronizationError || isEmptyObject(policy?.connections) ? [] : [integrationSpecificMenuItems]), ...(isEmptyObject(policy?.connections) || shouldShowSynchronizationError ? [] : [