Guard code from 9b99115b3 needs to be in undo_redo.js too

This commit is contained in:
Bryan Housel
2018-01-19 13:49:20 -05:00
parent 3667833bcf
commit 467de651f7

View File

@@ -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';
}