diff --git a/app/javascript/react/screens/App/Overview/components/Migrations/MigrationsNotStartedList.js b/app/javascript/react/screens/App/Overview/components/Migrations/MigrationsNotStartedList.js index b07f1d71b1..bb02fac8ad 100644 --- a/app/javascript/react/screens/App/Overview/components/Migrations/MigrationsNotStartedList.js +++ b/app/javascript/react/screens/App/Overview/components/Migrations/MigrationsNotStartedList.js @@ -93,6 +93,8 @@ class MigrationsNotStartedList extends React.Component { const migrationScheduled = plan.schedules && plan.schedules[0].run_at.start_time; const isMissingMapping = !plan.infraMappingName; + const editPlanDisabled = isMissingMapping || loading === plan.href; + return ( { e.stopPropagation(); - showPlanWizardEditModeAction(plan.id); + if (!editPlanDisabled) showPlanWizardEditModeAction(plan.id); }} - disabled={isMissingMapping || loading === plan.href} + disabled={editPlanDisabled} > {__('Edit')}