Skip to content

Commit

Permalink
Merge pull request #13500 from sg00dwin/perspective-flicker-bug
Browse files Browse the repository at this point in the history
OCPBUGS-25890: Prevent complete page reload when changing perspective
  • Loading branch information
openshift-merge-bot[bot] committed Jan 11, 2024
2 parents ecc936d + d8c57d1 commit 3d993a0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ const PerspectiveDropdownItem: React.FC<PerspectiveDropdownItemProps> = ({
e.preventDefault();
onClick(perspective.properties.id);
}}
icon={<LazyIcon />}
icon={
<React.Suspense fallback={<>&emsp;</>}>
<LazyIcon />
</React.Suspense>
}
>
<Title headingLevel="h2" size="md" data-test-id="perspective-switcher-menu-option">
{perspective.properties.name}
Expand Down

0 comments on commit 3d993a0

Please sign in to comment.