We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c7d27b commit 4beeb02Copy full SHA for 4beeb02
templates/base/http-clients/fetch-http-client.ejs
@@ -203,7 +203,7 @@ export class HttpClient<SecurityDataType = unknown> {
203
get(target, prop) {
204
// Custom properties for our API wrapper
205
if (prop === 'data') {
206
- return target._data !== undefined ? target._data : (null as unknown) as T;
+ return target._data ?? (null as unknown as T);
207
}
208
if (prop === 'error') {
209
return target._error !== undefined ? target._error : (null as unknown) as E;
0 commit comments