Skip to content

Commit

Permalink
Account for undefined artifact value (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
SorsOps authored Apr 15, 2024
1 parent 471b8b7 commit 9760b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/HelmChartWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9760b1c

Please sign in to comment.