mirror of
https://github.com/nasa/openmct.git
synced 2024-12-28 08:58:52 +00:00
[Plot] Cleanup
Remove console.log statements. Check for array existence before pushing.
This commit is contained in:
parent
953bd9d8fc
commit
cf421f8b9a
@ -180,12 +180,14 @@ define(
|
||||
function setInspectionObjects(event, telemetryObject) {
|
||||
if (event.shiftKey) {
|
||||
// This was a shift-click, so we want multiple selection
|
||||
$scope.ngModel.inspectionObjects.push(telemetryObject);
|
||||
console.log('push');
|
||||
if ($scope.ngModel.inspectionObjects.length > 0) {
|
||||
$scope.ngModel.inspectionObjects.push(telemetryObject);
|
||||
} else {
|
||||
$scope.ngModel.inspectionObjects = [telemetryObject];
|
||||
}
|
||||
} else {
|
||||
// Otherwise replace the old set of inspection objects with this
|
||||
$scope.ngModel.inspectionObjects = [telemetryObject];
|
||||
console.log('replace');
|
||||
}
|
||||
}
|
||||
this.setInspection = setInspectionObjects;
|
||||
|
Loading…
Reference in New Issue
Block a user