mirror of
https://github.com/grafana/grafana.git
synced 2025-01-16 11:42:35 -06:00
Small fix for unsaved changes when using save as feature
This commit is contained in:
parent
ad45b63e79
commit
29a7490af2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user