Data(this);
        const data = Object.fromEntries(formData.entries());
        const cableId = data.cableID;
        
        fetch(`/api/v1/cables/${cableId}`, {
            method: 'PUT',
            headers: {
                'Content-Type': 'application/json'
            },
            body: JSON.stringify(data)
        })
        .then(response => {
            if (response.ok) {
                alert('Cable updated successfully');
                closeEditCableModal();
                window.locatio