mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 00:07:03 +02:00
Fix false positive for impossible oneway when connected way is circular
This commit is contained in:
@@ -85,7 +85,9 @@ export function validationImpossibleOneway() {
|
||||
|
||||
if (attachedOneways.length) {
|
||||
var connectedEndpointsOkay = attachedOneways.some(function(attachedOneway) {
|
||||
return (isFirst ? attachedOneway.first() : attachedOneway.last()) !== nodeID;
|
||||
if ((isFirst ? attachedOneway.first() : attachedOneway.last()) !== nodeID) return true;
|
||||
if (nodeOccursMoreThanOnce(attachedOneway, nodeID)) return true;
|
||||
return false;
|
||||
});
|
||||
if (connectedEndpointsOkay) return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user