Skip to content

Commit

Permalink
fix(Cloud UI): duplicate render keys (#8460)
Browse files Browse the repository at this point in the history
  • Loading branch information
luvkapur authored Jan 26, 2024
1 parent 0a5c3c2 commit e6b813f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scopes/cloud/cloud/cloud.ui.runtime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class CloudUI {
workspace.registerMenuWidget([CloudUserBar]);
if (workspace) {
lanes.registerMenuWidget(CloudUserBar);
component.registerRightSideMenuItem({ item: <CloudUserBar />, order: 100 });
component.registerRightSideMenuItem({ item: <CloudUserBar key={'cloud-user-bar-comp-menu'} />, order: 100 });
}
return cloudUI;
}
Expand Down
2 changes: 1 addition & 1 deletion scopes/cloud/ui/user-bar/user-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function UserBar({ sections = [], items = [] }: UserBarProps) {
return {
...rest,
link: href,
component: Component ? <Component key={index} user={currentUser} /> : undefined,
component: Component ? <Component key={`user-bar-item-${index}`} user={currentUser} /> : undefined,
};
});

Expand Down

0 comments on commit e6b813f

Please sign in to comment.