mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 07:38:15 +00:00
Changed logic of persisted check slightly
This commit is contained in:
@ -67,7 +67,7 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onCancel() {
|
function onCancel() {
|
||||||
if (self.domainObject.getModel().persisted) {
|
if (self.domainObject.getModel().persisted !== undefined) {
|
||||||
//Fetch clean model from persistence
|
//Fetch clean model from persistence
|
||||||
return self.persistenceCapability.refresh().then(function (result) {
|
return self.persistenceCapability.refresh().then(function (result) {
|
||||||
self.persistPending = false;
|
self.persistPending = false;
|
||||||
|
Reference in New Issue
Block a user