diff --git a/js/main.js b/js/main.js index 8612657..b4679da 100644 --- a/js/main.js +++ b/js/main.js @@ -153,7 +153,9 @@ rcm_Disconect.addEventListener('click', function(evt) { let tfm_Disconect = document.getElementById("tfm_Disconnect"); tfm_Disconect.addEventListener('click', function(evt) { - logicEngine.ActiveContainer.Selected.Disconnect(); + for (let a = 0; a < logicEngine.ActiveContainer.Selected.length;a++) { + logicEngine.ActiveContainer.Selected[a]?.Disconnect(); + } logicEngine.ActiveContainer.Disconnect(logicEngine.ActiveContainer.Selected); setTimeout(function(){hideMenus()},10); });