Fixed issue with all unassigned zones being selected after a new account's name fails to validate (#1530)

This commit is contained in:
Matt Scott 2023-04-13 16:16:51 -04:00 committed by GitHub
commit 9ddfde02b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@
</option>
{% endwith %}
{% else %}
<option {% if account.id == domain.account_id %}selected{% endif %}
<option {% if account.id and account.id == domain.account_id %}selected{% endif %}
value="{{ domain.name }}">
{{ domain.name }}
</option>