mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 21:53:08 +00:00
[Time Conductor] Remove checks for undefined domain
Per code review, nasa/openmctweb#204
This commit is contained in:
parent
b6d08726fb
commit
101e3bb346
@ -78,11 +78,10 @@ define(
|
||||
|
||||
// Combine start/end times into a single object
|
||||
function bounds() {
|
||||
var domain = conductor.domain();
|
||||
return {
|
||||
start: conductor.displayStart(),
|
||||
end: conductor.displayEnd(),
|
||||
domain: domain && domain.key
|
||||
domain: conductor.domain().key
|
||||
};
|
||||
}
|
||||
|
||||
@ -132,7 +131,7 @@ define(
|
||||
{ outer: bounds(), inner: bounds() };
|
||||
conductorScope.ngModel.options =
|
||||
conductor.domainOptions().map(makeOption);
|
||||
conductorScope.ngModel.domain = (conductor.domain() || {}).key;
|
||||
conductorScope.ngModel.domain = conductor.domain().key;
|
||||
conductorScope.parameters = {};
|
||||
|
||||
conductorScope
|
||||
|
@ -51,7 +51,7 @@ define(
|
||||
request = request || {};
|
||||
request.start = start;
|
||||
request.end = end;
|
||||
request.domain = domain && domain.key;
|
||||
request.domain = domain.key;
|
||||
return request;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user