mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Prevent crash when missing datum
(This can happen if the user mouseups on a tooltip, e.g. in walkthrough)
This commit is contained in:
@@ -74,8 +74,8 @@ export function behaviorSelect(context) {
|
|||||||
mode = context.mode();
|
mode = context.mode();
|
||||||
|
|
||||||
|
|
||||||
if (datum.type === 'midpoint') {
|
if (!datum || datum.type === 'midpoint') {
|
||||||
// clicked midpoint, do nothing..
|
// do nothing..
|
||||||
|
|
||||||
} else if (!(datum instanceof osmEntity)) {
|
} else if (!(datum instanceof osmEntity)) {
|
||||||
// clicked nothing..
|
// clicked nothing..
|
||||||
|
|||||||
Reference in New Issue
Block a user