This commit
https://github.com/civicrm/civicrm-core/pull/19647/commits/
cfab7c9d1dc5d1e8438131354685928cd9da3877 renamed membershipType to membershipTypeID but missed this spot,
resulting in js errors on the new membership by credit card form
buildAutoRenew( null, null, '{$membershipMode}');
{/if}
{literal}
- function buildAutoRenew( membershipType, processorId, mode ) {
+ function buildAutoRenew(membershipTypeID, processorId, mode ) {
var action = {/literal}'{$action}'{literal};
//for update lets hide it when not already recurring.