Skip to content

Commit

Permalink
Fix prototype archival when skill tutorials are not loaded
Browse files Browse the repository at this point in the history
Co-authored-by: Laura Bergoens <[email protected]>
Co-authored-by: Jérémie Jadé <[email protected]>
Co-authored-by: Fael Bassetti <[email protected]>
  • Loading branch information
4 people committed Oct 2, 2024
1 parent 463fe53 commit 63136f8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export default class SingleController extends Controller {
this._message('Épreuve archivée');
this.send('close');
} catch (error) {
console.error(error);
Sentry.captureException(error);
this._errorMessage('Erreur lors de l\'archivage');
} finally {
Expand Down Expand Up @@ -610,6 +611,7 @@ export default class SingleController extends Controller {
if (!this._isProductionPrototype(challenge)) {
return;
}
await Promise.all([skill.tutoMore, skill.tutoSolution]);
const prototypesStatusOtherVersion = this._getPrototypesStatusOtherVersion(skill, challenge);
const haveProposalPrototype = prototypesStatusOtherVersion.includes('proposé');
if (haveProposalPrototype) {
Expand Down

0 comments on commit 63136f8

Please sign in to comment.