diff --git a/platform/features/plot/src/PlotController.js b/platform/features/plot/src/PlotController.js index 9f70e2c3e8..fe98fb806b 100644 --- a/platform/features/plot/src/PlotController.js +++ b/platform/features/plot/src/PlotController.js @@ -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;