fix: pass resource name instead of chart name to describe API (#657)

The DescribeResource component was passing the chart/release name
instead of the actual resource name, causing all resources of the
same kind to show the same describe output.

Closes #657

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Andrei Pohilko
2026-03-17 13:22:22 +00:00
parent 123f674e2f
commit f7deda06f5

View File

@@ -150,11 +150,11 @@ const DescribeResource = ({
} = resource; } = resource;
const { status, reason = "" } = conditions?.[0] || {}; const { status, reason = "" } = conditions?.[0] || {};
const { namespace = "", chart = "" } = useParams(); const { namespace = "" } = useParams();
const { data, isLoading } = useGetResourceDescription( const { data, isLoading } = useGetResourceDescription(
resource.kind, resource.kind,
namespace, namespace,
chart name
); );
const yamlFormattedData = useMemo( const yamlFormattedData = useMemo(