Skip to content

Commit

Permalink
fix(upload): handle same screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Aug 25, 2022
1 parent 49360d8 commit cfb8895
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ export const upload = async (params: UploadParameters) => {
name: config.buildName,
parallel: config.parallel,
parallelNonce: config.parallelNonce,
screenshotKeys: screenshots.map((screenshot) => screenshot.hash),
screenshotKeys: Array.from(
new Set(screenshots.map((screenshot) => screenshot.hash))
),
});

debug("Got screenshots", result);
Expand Down

0 comments on commit cfb8895

Please sign in to comment.