Skip to content

Commit 7093fbe

Browse files
committed
rm optional chaining
1 parent 066b206 commit 7093fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-server/src/ReactFlightServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function createRequest(
131131
options?: RequestOptions,
132132
): Request {
133133
const pingedSegments = [];
134-
const onError = options?.onError;
134+
const onError = options ? options.onError : undefined;
135135
const request = {
136136
status: OPEN,
137137
fatalError: null,

0 commit comments

Comments
 (0)