do not include internal domains within Create Client Modal

This commit is contained in:
Raven Scott
2025-12-17 20:20:48 -05:00
parent 742e27d3f7
commit b5eaf9993d
+2 -2
View File
@@ -84,8 +84,8 @@ async function openCreateClientModal() {
const select = document.getElementById('client-domain');
if (select && window.domainsData) {
// Filter to only show domains where user is owner
const ownedDomains = window.domainsData.filter(d => d.isOwner === true);
// Filter to only show domains where user is owner, excluding internal domains
const ownedDomains = window.domainsData.filter(d => d.isOwner === true && d.hash !== 'internal');
if (ownedDomains.length === 0) {
select.innerHTML = '<option value="">No owned domains available</option>';
if (window.showNotification) {