', cable.connector1),
                        loadConnectors('editCableConnector2', cable.connector2)
                    ]).then(() => {
                        // Only show modal after all data is loaded and selections are made
                        document.getElementById('editCableModal').style.display = 'flex';
                        document.body.style.overflow = 'hidden';
                    }).catch(error => {
                        console.error('Error loading cable dropdown data:', error);
   