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 07dbb5b commit 6c6fb5dCopy full SHA for 6c6fb5d
index.js
@@ -271,7 +271,7 @@ class Replicate {
271
// eslint-disable-next-line no-promise-executor-return
272
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
273
274
- const interval = options.interval || 500;
+ const interval = (options && options.interval) || 500;
275
276
let updatedPrediction = await this.predictions.get(id);
277
0 commit comments