Skip to content

fix(app-catalog): guard against missing chart metadata in EditorDialog#520

Open
Darshika11b wants to merge 1 commit intoheadlamp-k8s:mainfrom
Darshika11b:fix/app-catalog-chart-metadata-guard
Open

fix(app-catalog): guard against missing chart metadata in EditorDialog#520
Darshika11b wants to merge 1 commit intoheadlamp-k8s:mainfrom
Darshika11b:fix/app-catalog-chart-metadata-guard

Conversation

@Darshika11b
Copy link

Summary

Prevents EditorDialog from crashing when Helm chart metadata is missing.

What changed

  • Added defensive checks for release.chart.metadata
  • Prevents runtime crash when metadata is undefined
  • No UI changes

Why

Some Helm releases do not include complete chart metadata.
Accessing metadata.name without checks caused EditorDialog to crash.

Testing

  • Verified EditorDialog opens normally with valid metadata
  • Verified graceful handling when metadata is missing

Signed-off-by: [Darshika11b] <[darshikab22@gmail.com]>
Copy link
Contributor

@illume illume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for those changes.

Can you please check the git commit messages match the git commit guidelines in the contributing guide?

Please see open review comments?

There's an issue with the DCO GitHub check. Please have a look. git commit --amend -s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants