Skip to content

Commit

Permalink
rm optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Feb 17, 2022
1 parent 066b206 commit 7093fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-server/src/ReactFlightServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function createRequest(
options?: RequestOptions,
): Request {
const pingedSegments = [];
const onError = options?.onError;
const onError = options ? options.onError : undefined;
const request = {
status: OPEN,
fatalError: null,
Expand Down

0 comments on commit 7093fbe

Please sign in to comment.