mirror of
https://github.com/nasa/openmct.git
synced 2025-05-29 21:54:20 +00:00
[Create] Add specificity to check
Explicitly check if an object has a persistence timestamp at all (avoids false-positives due to falsiness of zero.)
This commit is contained in:
parent
88750d92ef
commit
c43929f1c6
@ -156,11 +156,7 @@ define([
|
|||||||
"name": "Save",
|
"name": "Save",
|
||||||
"description": "Save changes made to these objects.",
|
"description": "Save changes made to these objects.",
|
||||||
"depends": [
|
"depends": [
|
||||||
"$q",
|
|
||||||
"$location",
|
|
||||||
"$injector",
|
"$injector",
|
||||||
"urlService",
|
|
||||||
"navigationService",
|
|
||||||
"policyService",
|
"policyService",
|
||||||
"dialogService",
|
"dialogService",
|
||||||
"creationService",
|
"creationService",
|
||||||
|
@ -118,7 +118,7 @@ define(
|
|||||||
function doSave() {
|
function doSave() {
|
||||||
//This is a new 'virtual object' that has not been persisted
|
//This is a new 'virtual object' that has not been persisted
|
||||||
// yet.
|
// yet.
|
||||||
if (!domainObject.getModel().persisted){
|
if (domainObject.getModel().persisted === undefined){
|
||||||
return getParent(domainObject)
|
return getParent(domainObject)
|
||||||
.then(doWizardSave)
|
.then(doWizardSave)
|
||||||
.then(getParent)
|
.then(getParent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user