From f6b7db699347130932cfa9bd524d47dde0c20f8d Mon Sep 17 00:00:00 2001 From: Eithliu Date: Wed, 9 Oct 2024 11:22:46 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20remove=20"modification=20annul=C3=A9e"?= =?UTF-8?q?=20display=20when=20going=20in=20an=20nl=20version=20of=20a=20d?= =?UTF-8?q?ecli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Laura Bergoens Co-authored-by: Jérémie Jadé Co-authored-by: Fael Bassetti --- .../app/routes/authenticated/competence/prototypes/localized.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pix-editor/app/routes/authenticated/competence/prototypes/localized.js b/pix-editor/app/routes/authenticated/competence/prototypes/localized.js index 96a22307a..7c97d44f1 100644 --- a/pix-editor/app/routes/authenticated/competence/prototypes/localized.js +++ b/pix-editor/app/routes/authenticated/competence/prototypes/localized.js @@ -19,6 +19,6 @@ export default class LocalizedPrototypeRoute extends Route { resetController(controller, _isExiting, _transition) { super.resetController(controller, _isExiting, _transition); - controller.send('cancelEdit'); + if (controller.edition) controller.send('cancelEdit'); } }