Skip to content

Commit

Permalink
Fix async reload when it returns a null response
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Sep 10, 2024
1 parent d4489f2 commit f4d15b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions browser/page_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ func mapPage(vu moduleVU, p *common.Page) mapping { //nolint:gocognit,cyclop
return nil, err //nolint:wrapcheck
}

if resp == nil {
return nil, nil
}

r := mapResponse(vu, resp)

return rt.ToValue(r).ToObject(rt), nil
Expand Down

0 comments on commit f4d15b3

Please sign in to comment.