Small fix for unsaved changes when using save as feature
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user