Skip to content

Commit

Permalink
fix archive action prototype when alternative is draft
Browse files Browse the repository at this point in the history
Co-authored-by: Iris Benoit <[email protected]>
Co-authored-by: Fael Bassetti <[email protected]>
  • Loading branch information
3 people committed Oct 1, 2024
1 parent aeb1d6f commit 1b47940
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ export default class SingleController extends Controller {
}
const toArchive = challenge.productionAlternatives;
const toObsolete = challenge.draftAlternatives;
if (toArchive.length === 0 && toObsolete.length) {
if (toArchive.length === 0 && toObsolete.length === 0) {
return Promise.resolve(challenge);
}
const alternativesArchive = toArchive.map((alternative) => {
Expand Down

0 comments on commit 1b47940

Please sign in to comment.