"composer was opened without a draft key"

So this is coming from here:

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/routes/discovery-categories.js.es6#L15

const style = !this.site.mobileView && this.siteSettings.desktop_category_page_style;

So on mobile we are calling promise = CategoryList.listForParent(this.store, parentCategory); while on desktop we are calling promise = this._loadCategoriesAndLatestTopics(); which is effectively setting the draft_key: https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/routes/discovery-categories.js.es6#L49

I went with this easy fix:

https://github.com/discourse/discourse/commit/b1593c018440cad761f6fd527cb12508c205639b

As I didn’t want to refactor the whole discovery-categories file, do you think that should be enough @sam ?

6 Likes