Fix outlet selection and usage rules in new connections

This commit is contained in:
2026-02-19 09:16:49 +01:00
parent 9ece132df5
commit 1a51d2507b
2 changed files with 63 additions and 18 deletions

View File

@@ -77,6 +77,9 @@ $isEndpointAllowed = static function (string $type, int $id) use ($occupiedByTyp
if ($id <= 0) {
return false;
}
if ($type === 'outlet') {
return true;
}
if ($type === $portAType && $id === $portAId) {
return true;
}