mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-05 03:12:14 +00:00
fix: Added filter to get connected providers only for banner to show (#7726)
Co-authored-by: sumit-tft <70506234+sumit-tft@users.noreply.github.com>
This commit is contained in:
@@ -40,7 +40,9 @@ export default async function Scans({
|
||||
connected: provider.attributes.connection.connected,
|
||||
})) || [];
|
||||
|
||||
const providersCountConnected = await getProviders({});
|
||||
const providersCountConnected = await getProviders({
|
||||
filters: { "filter[connected]": true },
|
||||
});
|
||||
const thereIsNoProviders =
|
||||
!providersCountConnected?.data || providersCountConnected.data.length === 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user