diff --git a/modules/behavior/select.js b/modules/behavior/select.js index a24412778..24de5487d 100644 --- a/modules/behavior/select.js +++ b/modules/behavior/select.js @@ -74,7 +74,7 @@ export function behaviorSelect(context) { mode = context.mode(); - if (!datum || datum.type === 'midpoint') { + if (datum && datum.type === 'midpoint') { // do nothing.. } else if (!(datum instanceof osmEntity)) {