Skip to content

Commit aaa1c03

Browse files
committed
fix(admin): drop initial applyVisibility and Razor fallback on cohort Edit
The server now renders the hidden attribute on initial load for every Edit scenario (locked, unlocked, churn-only, migration), so the page-load script no longer needs the Razor-rendered MigrationPathSelection constant or the initial applyVisibility call. Keeps only the change listener for interactive toggling on the unlocked path.
1 parent 84fba3d commit aaa1c03

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • src/Admin/Billing/Views/OrganizationPlanMigrationCohorts

src/Admin/Billing/Views/OrganizationPlanMigrationCohorts/Edit.cshtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@
101101
churnOptionalLabel.hidden = isChurnOnly;
102102
};
103103
104-
const initialValue = select ? select.value : '@Model.FormModel.MigrationPathSelection';
105-
applyVisibility(initialValue);
106104
select?.addEventListener('change', (e) => applyVisibility(e.target.value));
107105
})();
108106
</script>

0 commit comments

Comments
 (0)