Skip to content

Commit

Permalink
validate data to prevent app crash
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Jul 20, 2024
1 parent 216e6a9 commit 9c701f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/data/TVEpisodeData.bs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import "pkg:/source/utils/misc.bs"

sub setFields()
if not isValid(m.top.json) then return
datum = m.top.json

m.top.id = datum.id
Expand Down

0 comments on commit 9c701f9

Please sign in to comment.