mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-09 21:14:22 +00:00
feat(ui): show all provider UIDs in scan page filter regardless of co… (#8375)
This commit is contained in:
1 parent
65e7e89d61
commit
8317ea783f
2 files changed
+13
-10
No files matched your search
@@ -31,20 +31,22 @@ export default async function Scans({
|
||||
const searchParamsKey = JSON.stringify(filteredParams);
|
||||
|
||||
const providersData = await getProviders({
|
||||
filters: {
|
||||
"filter[connected]": true,
|
||||
},
|
||||
pageSize: 50,
|
||||
});
|
||||
|
||||
const providerInfo =
|
||||
providersData?.data?.map((provider: ProviderProps) => ({
|
||||
providerId: provider.id,
|
||||
alias: provider.attributes.alias,
|
||||
providerType: provider.attributes.provider,
|
||||
uid: provider.attributes.uid,
|
||||
connected: provider.attributes.connection.connected,
|
||||
})) || [];
|
||||
providersData?.data
|
||||
?.filter(
|
||||
(provider: ProviderProps) =>
|
||||
provider.attributes.connection.connected === true,
|
||||
)
|
||||
.map((provider: ProviderProps) => ({
|
||||
providerId: provider.id,
|
||||
alias: provider.attributes.alias,
|
||||
providerType: provider.attributes.provider,
|
||||
uid: provider.attributes.uid,
|
||||
connected: provider.attributes.connection.connected,
|
||||
})) || [];
|
||||
|
||||
const thereIsNoProviders = !providersData?.data;
|
||||
|
||||
|
||||
Reference in new issue
Block a user