mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Guard code from 9b99115b3 needs to be in undo_redo.js too
This commit is contained in:
@@ -29,7 +29,8 @@ export function uiUndoRedo(context) {
|
||||
|
||||
|
||||
function editable() {
|
||||
return context.editable() && context.mode().id !== 'save';
|
||||
var mode = context.mode();
|
||||
return context.editable() && mode && mode.id !== 'save';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user