Skip to content

Commit

Permalink
Bug 2094293: do not show NodesUpdateGroup if there are 0 nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamilto committed Jun 13, 2022
1 parent a85d603 commit 4fbdb75
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -639,7 +639,7 @@ export const NodesUpdatesGroup: React.FC<NodesUpdatesGroupProps> = ({
const percentMCPNodes = calculatePercentage(updatedMCPNodes, totalMCPNodes);
const isUpdated = percentMCPNodes === 100;
const { t } = useTranslation();
return hideIfComplete && isUpdated
return totalMCPNodes === 0 || (hideIfComplete && isUpdated)
? null
: machineConfigOperatorLoaded && renderedConfigLoaded && (
<UpdatesGroup divided={divided}>
Expand Down

0 comments on commit 4fbdb75

Please sign in to comment.