From 78d67f34f9e8488cc7b690aff59908b371cce0c3 Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Mon, 9 Dec 2019 07:53:05 -0800 Subject: [PATCH] FIX: default draft key in openComposerWithTopicParams (#8496) --- app/assets/javascripts/discourse/mixins/open-composer.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/mixins/open-composer.js.es6 b/app/assets/javascripts/discourse/mixins/open-composer.js.es6 index 5896a09d5db..136cca6d50a 100644 --- a/app/assets/javascripts/discourse/mixins/open-composer.js.es6 +++ b/app/assets/javascripts/discourse/mixins/open-composer.js.es6 @@ -34,7 +34,7 @@ export default Mixin.create({ topicBody, topicCategoryId, topicTags, - draftKey: controller.get("model.draft_key"), + draftKey: controller.get("model.draft_key") || Composer.NEW_TOPIC_KEY, draftSequence: controller.get("model.draft_sequence") }); },