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 41e25b8 commit 11f84f5Copy full SHA for 11f84f5
src/templates/core/CancelablePromise.hbs
@@ -120,7 +120,7 @@ export class CancelablePromise<T> implements Promise<T> {
120
}
121
122
this.#cancelHandlers.length = 0;
123
- this.#reject?.(new CancelError('Request aborted'));
+ if (this.#reject) this.#reject(new CancelError('Request aborted'));
124
125
126
public get isCancelled(): boolean {
0 commit comments