Skip to content

Commit 4beeb02

Browse files
omarmciverCopilot
andauthored
Update templates/base/http-clients/fetch-http-client.ejs
Co-authored-by: Copilot <[email protected]>
1 parent 8c7d27b commit 4beeb02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base/http-clients/fetch-http-client.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class HttpClient<SecurityDataType = unknown> {
203203
get(target, prop) {
204204
// Custom properties for our API wrapper
205205
if (prop === 'data') {
206-
return target._data !== undefined ? target._data : (null as unknown) as T;
206+
return target._data ?? (null as unknown as T);
207207
}
208208
if (prop === 'error') {
209209
return target._error !== undefined ? target._error : (null as unknown) as E;

0 commit comments

Comments
 (0)