Skip to content

Commit af258b2

Browse files
authored
Replace history/location state when moving from the Operators step only in assisted installer pages (#2513)
1 parent 3c90502 commit af258b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/ui-lib/lib/ocm/components/clusterWizard/Operators.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ const OperatorsForm = ({ cluster }: { cluster: Cluster }) => {
5353
!canNextOperators({ cluster });
5454

5555
const handleNext = () => {
56-
history.replace(pathname, undefined);
56+
if (window.location.pathname.indexOf('assisted-installer') > -1) {
57+
history.replace(pathname, undefined);
58+
}
5759
clusterWizardContext.moveNext();
5860
};
5961

0 commit comments

Comments
 (0)