Skip to content

Commit

Permalink
fix(ui): extension can crash outside of error boundary (#19667)
Browse files Browse the repository at this point in the history
Signed-off-by: Remington Breeze <remington@breeze.software>
  • Loading branch information
rbreeze authored Aug 24, 2024
1 parent f49a71c commit e612199
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const ResourceDetails = (props: ResourceDetailsProps) => {
title: tabExtensions.title,
key: `extension-${i}`,
content: (
<ErrorBoundary message={`Something went wrong with Extension for ${state.kind}`}>
<ErrorBoundary message={`Something went wrong with Extension for ${state?.kind || 'resource of unknown kind'}`}>
<tabExtensions.component tree={tree} resource={state} application={application} />
</ErrorBoundary>
),
Expand Down

0 comments on commit e612199

Please sign in to comment.