Skip to content

Commit 99c2ab7

Browse files
authored
Merge pull request #153 from parthlambdatest/Dot-3915
optimization of responsive dom
2 parents f4d2fd3 + 123aca2 commit 99c2ab7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/snapshotQueue.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export default class Queue {
269269
this.processingSnapshot = snapshot?.name;
270270
let drop = false;
271271

272-
if (snapshot && snapshot.name && this.snapshotNames.includes(snapshot.name)) {
272+
if (this.ctx.config.delayedUpload && snapshot && snapshot.name && this.snapshotNames.includes(snapshot.name)) {
273273
if (!this.ctx.config.delayedUpload){
274274
drop = true;
275275
this.ctx.log.debug(`snapshot failed; Same snapshot has been encountered with delayedUploads being false`);
@@ -278,11 +278,11 @@ export default class Queue {
278278
}
279279
}
280280

281-
if (snapshot && snapshot.name && !this.snapshotNames.includes(snapshot.name) && !drop) {
281+
if (this.ctx.config.delayedUpload && snapshot && snapshot.name && !this.snapshotNames.includes(snapshot.name) && !drop) {
282282
this.snapshotNames.push(snapshot.name);
283283
}
284284

285-
if (snapshot && !drop) {
285+
if (this.ctx.config.delayedUpload && snapshot && !drop) {
286286
this.processGenerateVariants(snapshot);
287287
}
288288

0 commit comments

Comments
 (0)