mirror of
https://github.com/nasa/openmct.git
synced 2025-04-13 14:13:07 +00:00
[Context] Suppress warnings while editing
Don't expect consistency between composition and location fields while an object is being edited; this avoids benign warnings being logged. Fixes #624
This commit is contained in:
parent
cd21575546
commit
1c2378b3b4
@ -65,7 +65,13 @@ define(
|
||||
* which should appear as the contextual parent
|
||||
*/
|
||||
return function (domainObject, parentObject) {
|
||||
validate(domainObject.getId(), parentObject);
|
||||
// Don't validate while editing; consistency is not
|
||||
// necessarily expected due to unsaved changes.
|
||||
var editor = domainObject.getCapability('editor');
|
||||
if (editor && !editor.inEditContext()) {
|
||||
validate(domainObject.getId(), parentObject);
|
||||
}
|
||||
|
||||
return new ContextualDomainObject(domainObject, parentObject);
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user