mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 21:11:53 +00:00
fix(ui): display NoProvidersAdded when no cloud providers are configured (#8626)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user