Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Prevent undefined errors

Manav Rathi33c84f7a08e9
diff --git a/web/apps/photos/src/utils/common/job.ts b/web/apps/photos/src/utils/common/job.ts
index f549966b66..365f879e95 100644
--- a/web/apps/photos/src/utils/common/job.ts
+++ b/web/apps/photos/src/utils/common/job.ts
@@ -50,7 +50,7 @@ export class SimpleJob<R extends JobResult> {
try {
const jobResult = await this.runCallback();
- if (jobResult.shouldBackoff) {
+ if (jobResult && jobResult.shouldBackoff) {
this.intervalSec = Math.min(
this.config.maxItervalSec,
this.intervalSec * this.config.backoffMultiplier,