Dynamic_forms.js and auto_accounts on OOD 4.0.7

We have a dev instance of OOD that we upgraded to 4.0.7 from 3.1.14 on a RHEL 9 system.

Since then, our auto_accounts filed doesn’t behave appropriately - the default selected value appears, but when selecting the dropdown list it appears empty. However, when inspecting the HTML the other accounts are there.

The HTML:

<select class="form-select" name="batch_connect_session_context[auto_accounts]" id="batch_connect_session_context_auto_accounts">
     <option data-option-for-cluster-vacc="false" selected="selected" value="pi-tsbartle" style="display: none;" disabled="">pi-tsbartle</option>
     <option data-option-for-cluster-vacc="false" value="vaccstaff" style="display: none;" disabled="">vaccstaff</option>
</select>

Errors that I’m seeing in the console:
Uncaught TypeError: can't access property "filter", t.match(...) is null

I have bc_dynamic_js: true set in /etc/ood/config/ondemand.d/ourcluster.yml

Thank you in advance for any tips or tricks in sorting this out.

I forgot to mention - disabling javascript allows the auto_accounts field to behave as expected.

I’m assuming this happens when cluster ‘vacc’ is selected? The data-option-for-cluster-vacc=“false” in both the options is the immediate cause, but it seems to be functioning properly (disabling both account options when vacc is selected). Could you verify that one or both of the accounts is enabled on the vacc cluster?

That appears to be the issue, thanks! Our cluster: vacc and the ClusterName within slurm did not match.

Although, this is new behavior (for us anyway) as we don’t see this on our 3.1.14 instance.