   
        return fetch('/api/v1/cables/connectors')
            .then(response => response.json())
            .then(data => {
                if (data.connectors) {
                    console.log(`Got ${data.connectors.length} connectors:`, data.connectors);
                    select.innerHTML = '<option value="">Select connector</option>';
                    data.connectors.forEach(connector => {
                        const option = document.createElement('option');
                        option.v