Skip to content

Commit

Permalink
fix: 🚨 fix lint error with undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Dec 19, 2023
1 parent cb1c4db commit 51d90e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/viewer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ class Viewer {
this.orbits?.setSelectedSatellite(satelliteIdx);
}

setSelectedSatelliteGroup (satelliteGroup: SatelliteGroup | undefined) {
setSelectedSatelliteGroup (satelliteGroup?: SatelliteGroup) {
if (!satelliteGroup) return;

this.satelliteGroups?.selectGroup(satelliteGroup);
this.orbits?.setSatelliteGroup(satelliteGroup);
this.satellites?.setSatelliteGroup(satelliteGroup);
Expand Down

0 comments on commit 51d90e0

Please sign in to comment.