Skip to content

Commit

Permalink
fix: optional property check for error metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
chejimmy committed Dec 4, 2024
1 parent 65c2024 commit 1a2b661
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const sendRequest = ({
Object.entries(callbackCache).forEach(([entryId, { onError }]) => {
onError({
entryId,
errorCode: e.$metadata.httpStatusCode,
errorCode: e?.$metadata.httpStatusCode,
errorMessage: e.message,
});
});
Expand Down

0 comments on commit 1a2b661

Please sign in to comment.