From 33554f4057e201316fda18dd5768ddcdb7196ac9 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 18 Jul 2023 15:32:14 -0400 Subject: [PATCH] patch bug when imports don't show with no secrets --- frontend/src/views/DashboardPage/DashboardPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/DashboardPage/DashboardPage.tsx b/frontend/src/views/DashboardPage/DashboardPage.tsx index 1cf24dcb4..fbbb66053 100644 --- a/frontend/src/views/DashboardPage/DashboardPage.tsx +++ b/frontend/src/views/DashboardPage/DashboardPage.tsx @@ -676,7 +676,8 @@ export const DashboardPage = ({ envFromTop }: { envFromTop: string }) => { const isSnapshotSecretEmtpy = isRollbackMode && !isSnapshotSecretsLoading && !snapshotSecret?.secrets?.length; const isSecretEmpty = (!isRollbackMode && isDashboardSecretEmpty) || isSnapshotSecretEmtpy; - const isEmptyPage = isFoldersEmpty && isSecretEmpty; + const isSecretImportEmpty = !importedSecrets?.length; + const isEmptyPage = isFoldersEmpty && isSecretEmpty && isSecretImportEmpty; if (isSecretsLoading || isEnvListLoading) { return (