sole.error('Error loading cable types:', error);
                select.innerHTML = '<option value="">Error loading types</option>';
                return false;
            });
    }

    function loadConnectors(selectId, selectedId = null) {
        const select = document.getElementById(selectId);
        select.innerHTML = '<option value="">Loading connectors...</option>';
        
        console.log(`loadConnectors called: selectId=${selectId}, selectedId=${selectedId} (${typeof selectedId})`);
     