docs(ui): reference isCloud() instead of the renamed cloud flag

The Cloud flag moved from build-time NEXT_PUBLIC_IS_CLOUD_ENV to the
runtime UI_CLOUD_ENABLED (#12061). The adapter already gates on isCloud(),
which resolves the new mechanism; update the stale docstring to match.
This commit is contained in:
Daniel Barranquero
2026-07-22 16:10:16 +02:00
parent a381ac982d
commit a27fc88c2c
+2 -3
View File
@@ -24,9 +24,8 @@ import {
* Decide whether a query should appear in the selector.
*
* Empty-query filtering is a Prowler Cloud feature: outside Cloud
* (`NEXT_PUBLIC_IS_CLOUD_ENV !== "true"`) the queries API does not precompute
* result summaries, so every query is shown, matching current self-hosted
* behaviour.
* (`isCloud()` is false) the queries API does not precompute result summaries,
* so every query is shown, matching current self-hosted behaviour.
*
* In Cloud, hide only queries the scan precomputed and found empty
* (`has_data === false`). Everything else stays visible: parameterized queries