Fix eslint error

This commit is contained in:
J Guthrie
2019-04-08 16:38:10 +01:00
parent 4d24db597e
commit ac29803b6f
+5 -1
View File
@@ -8,7 +8,11 @@ export function operationDisconnect(selectedIDs, context) {
ways = [];
selectedIDs.forEach(function(id) {
context.geometry(id) === 'vertex' ? vertices.push(id) : ways.push(id);
if (context.geometry(id) === 'vertex') {
vertices.push(id);
} else {
ways.push(id);
}
});
var entityID = vertices[0];