Skip to content

Commit

Permalink
fix: cannot read properties of undefined (reading 'url')
Browse files Browse the repository at this point in the history
  • Loading branch information
baegofda committed Aug 25, 2024
1 parent 63b7831 commit c76edac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/browser/setupWorker/start/createResponseListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ export function createResponseListener(context: SetupWorkerInternalContext) {
// Get the Request instance reference stored in the
// request listener.
const { requestId } = responseJson
const request = context.requests.get(requestId)!
const request = context.requests.get(requestId)

if(!request) {
return
}

context.requests.delete(requestId)

/**
Expand Down

0 comments on commit c76edac

Please sign in to comment.