From 9760b1c8a79c049eb40740d0728610a254da2e1b Mon Sep 17 00:00:00 2001 From: SorsOps <80043879+SorsOps@users.noreply.github.com> Date: Mon, 15 Apr 2024 10:52:47 +0200 Subject: [PATCH] Account for undefined artifact value (#91) --- web/src/HelmChartWidget.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/HelmChartWidget.jsx b/web/src/HelmChartWidget.jsx index a1b77ff..205d3f5 100644 --- a/web/src/HelmChartWidget.jsx +++ b/web/src/HelmChartWidget.jsx @@ -5,7 +5,7 @@ export function HelmChartWidget(props) { const sourceRef = source.spec.sourceRef const artifact = source.status.artifact - const revision = artifact.revision + const revision = artifact?.revision || 'unknown' const navigationHandler = () => handleNavigationSelect("Sources", source.metadata.namespace, sourceRef.name, sourceRef.kind)