Skip to content

Commit

Permalink
Merge pull request #2034 from headlamp-k8s/backlink-fix
Browse files Browse the repository at this point in the history
frontend: Hide back button with null backLink
  • Loading branch information
joaquimrocha authored Jun 14, 2024
2 parents a11f9f0 + 2f5c3db commit d97753d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export function MainInfoSection(props: MainInfoSectionProps) {
const header = typeof headerSection === 'function' ? headerSection(resource) : headerSection;

function getBackLink() {
if (backLink === null) {
return false;
}

if (!!backLink || backLink === '') {
return backLink;
}
Expand Down

0 comments on commit d97753d

Please sign in to comment.