From f49389309a5aa83413b35f33e8ecfc3459f6e6d2 Mon Sep 17 00:00:00 2001 From: Renato Atilio Date: Tue, 29 Aug 2023 16:07:33 -0300 Subject: [PATCH] FIX: no form template logic when editing posts (#23317) --- app/assets/javascripts/discourse/app/services/composer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/services/composer.js b/app/assets/javascripts/discourse/app/services/composer.js index 3db88f19cad..d46b80c7a54 100644 --- a/app/assets/javascripts/discourse/app/services/composer.js +++ b/app/assets/javascripts/discourse/app/services/composer.js @@ -909,7 +909,8 @@ export default class ComposerService extends Service { if (this.siteSettings.experimental_form_templates) { if ( this.formTemplateIds?.length > 0 && - !this.get("model.replyingToTopic") + !this.get("model.replyingToTopic") && + !this.get("model.editingPost") ) { const formTemplateData = prepareFormTemplateData( document.querySelector("#form-template-form")