mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +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();
|
||||
|
||||
|
||||
if (datum.type === 'midpoint') {
|
||||
// clicked midpoint, do nothing..
|
||||
if (!datum || datum.type === 'midpoint') {
|
||||
// do nothing..
|
||||
|
||||
} else if (!(datum instanceof osmEntity)) {
|
||||
// clicked nothing..
|
||||
|
||||
Reference in New Issue
Block a user