Skip to content

Commit

Permalink
fix: 🚑 fix error when no satellite selected
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Sep 19, 2024
1 parent ea1b7eb commit d12c81d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class TransponderChannelData extends KeepTrackPlugin {
// Show error if satellite is not a Payload in GEO
if (
!selectedSat ||
selectedSat.id === -1 ||
!selectedSat.isSatellite() ||
!this.satsWithChannels_.includes((selectedSat as DetailedSatellite).sccNum)
) {
Expand Down Expand Up @@ -61,6 +62,7 @@ export class TransponderChannelData extends KeepTrackPlugin {
cb: (obj: BaseObject) => {
if (
!obj ||
obj.id === -1 ||
!obj.isSatellite() ||
!this.satsWithChannels_.includes((obj as DetailedSatellite).sccNum)
) {
Expand Down

0 comments on commit d12c81d

Please sign in to comment.