Skip to content

Commit

Permalink
Bug 2096350: fix bug where Cluster update modal errors weren't displa…
Browse files Browse the repository at this point in the history
…ying
  • Loading branch information
rhamilto authored and openshift-cherrypick-robot committed Jun 27, 2022
1 parent cd00317 commit 1dd4582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/public/components/modals/cluster-update-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const ClusterUpdateModal = withHandlePromise((props: ClusterUpdateModalProps) =>
isList: true,
kind: referenceForModel(MachineConfigPoolModel),
});
const [error, setError] = React.useState(errorMessage);
const [error, setError] = React.useState('');
const [machineConfigPoolsToPause, setMachineConfigPoolsToPause] = React.useState<string[]>([]);
const [upgradeType, setUpgradeType] = React.useState<upgradeTypes>(upgradeTypes.Full);
const [includeNotRecommended, setIncludeNotRecommended] = React.useState(false);
Expand Down Expand Up @@ -321,7 +321,7 @@ const ClusterUpdateModal = withHandlePromise((props: ClusterUpdateModalProps) =>
</div>
</ModalBody>
<ModalSubmitFooter
errorMessage={error}
errorMessage={errorMessage || error}
inProgress={inProgress}
submitText={t('public~Update')}
cancelText={t('public~Cancel')}
Expand Down

0 comments on commit 1dd4582

Please sign in to comment.