Commit 29a7490a by Torkel Ödegaard

Small fix for unsaved changes when using save as feature

parent ad45b63e
......@@ -37,7 +37,7 @@ function(angular, _, config) {
});
this.ignoreChanges = function() {
if (!self.current) { return true; }
if (!self.current || !self.current.meta) { return true; }
var meta = self.current.meta;
return !meta.canSave || meta.fromScript || meta.fromFile;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment