Skip to content

Commit

Permalink
fix(ui): UI crashes after reinstalling ArgoCD (argoproj#6218)
Browse files Browse the repository at this point in the history
Signed-off-by: Remington Breeze <[email protected]>
  • Loading branch information
rbreeze authored May 12, 2021
1 parent ac2491d commit d3fffc2
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions ui/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,18 @@ export class App extends React.Component<{}, {popupProps: PopupProps; showVersio
navItems={navItems}
version={() => (
<DataLoader load={() => versionLoader}>
{version => (
<React.Fragment>
<Tooltip content={version.Version}>
<a style={{color: 'white'}} onClick={() => this.setState({showVersionPanel: true})}>
{version.Version}
</a>
</Tooltip>
</React.Fragment>
)}
{version => {
const versionString = version ? version.Version : 'Unknown';
return (
<React.Fragment>
<Tooltip content={versionString}>
<a style={{color: 'white'}} onClick={() => this.setState({showVersionPanel: true})}>
{versionString}
</a>
</Tooltip>
</React.Fragment>
);
}}
</DataLoader>
)}>
<Banner>
Expand Down

0 comments on commit d3fffc2

Please sign in to comment.