From 74c22cef5ee256f863db980035eb9e292b95f8d6 Mon Sep 17 00:00:00 2001 From: Fael BASSETTI Date: Wed, 2 Oct 2024 12:02:37 +0200 Subject: [PATCH] Fix skill archive action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Iris Benoit-Martin Co-authored-by: Jérémie Jadé --- .../app/controllers/authenticated/competence/skills/single.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pix-editor/app/controllers/authenticated/competence/skills/single.js b/pix-editor/app/controllers/authenticated/competence/skills/single.js index 980c06389..689708046 100644 --- a/pix-editor/app/controllers/authenticated/competence/skills/single.js +++ b/pix-editor/app/controllers/authenticated/competence/skills/single.js @@ -191,7 +191,7 @@ export default class SingleController extends Controller { if (dropdown) { dropdown.actions.close(); } - const challenges = this.skill.challenges; + const challenges = this.skill.challengesArray; return this.confirm.ask(this.intl.t('skill.archive.confirm.title'), this.intl.t('skill.archive.confirm.message')) .then(() => { this._displayChangelogPopIn(this.intl.t('skill.changelog.archive'), (changelogValue)=>{ @@ -241,7 +241,7 @@ export default class SingleController extends Controller { if (dropdown) { dropdown.actions.close(); } - const challenges = this.skill.challenges; + const challenges = this.skill.challengesArray; return this.confirm.ask(this.intl.t('skill.obsolete.confirm.title'), this.intl.t('skill.obsolete.confirm.message')) .then(() => { this._displayChangelogPopIn(this.intl.t('skill.changelog.obsolete'), (changelogValue) => {