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 c1fd920 commit 082a0f8Copy full SHA for 082a0f8
index.js
@@ -163,15 +163,15 @@ class Replicate {
163
}
164
165
// We handle the cancel later in the function.
166
- if (signal?.aborted) {
+ if (signal && signal.aborted) {
167
return true; // stop polling
168
169
170
return false; // continue polling
171
172
);
173
174
175
prediction = await this.predictions.cancel(prediction.id);
176
177
0 commit comments