fix(ui): display NoProvidersAdded when no cloud providers are configured (#8626)

This commit is contained in:
sumit-tft
2025-09-02 16:03:58 +05:30
committed by GitHub
parent 8cd90e07dc
commit 230a085c76
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -12,6 +12,9 @@ All notable changes to the **Prowler UI** are documented in this file.
- Markdown rendering in finding details page [(#8604)](https://github.com/prowler-cloud/prowler/pull/8604)
### 🐞 Fixed
- Scan page shows NoProvidersAdded when no providers [(#8626)](https://github.com/prowler-cloud/prowler/pull/8626)
## [1.11.0] (Prowler v5.11.0)
### 🚀 Added
+2 -1
View File
@@ -48,7 +48,8 @@ export default async function Scans({
connected: provider.attributes.connection.connected,
})) || [];
const thereIsNoProviders = !providersData?.data;
const thereIsNoProviders =
!providersData?.data || providersData.data.length === 0;
const thereIsNoProvidersConnected = providersData?.data?.every(
(provider: ProviderProps) => !provider.attributes.connection.connected,