Skip to content

Commit

Permalink
satisfactorymodding#22: Handle mod info empty response
Browse files Browse the repository at this point in the history
  • Loading branch information
surdaft committed Aug 1, 2023
1 parent 775d4cd commit fc96434
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tea/scenes/mods/mod_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ func NewModInfo(root components.RootModel, parent tea.Model, mod utils.Mod) tea.
return
}

if fullMod.Mod.Id == "" {
// likely does not exist on GQL
model.modError <- mod.Reference + " was not found on ficsit.app"
return
}

model.modData <- fullMod.Mod
}()

Expand Down

0 comments on commit fc96434

Please sign in to comment.