nodebb-plugin-composer-default 10.1.4 → 10.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-composer-default",
3
- "version": "10.1.4",
3
+ "version": "10.1.5",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -426,7 +426,7 @@ define('composer', [
426
426
  };
427
427
 
428
428
  async function getSelectedCategory(postData) {
429
- if (ajaxify.data.template.category) {
429
+ if (ajaxify.data.template.category && parseInt(postData.cid, 10) === parseInt(ajaxify.data.cid, 10)) {
430
430
  // no need to load data if we are already on the category page
431
431
  return ajaxify.data;
432
432
  } else if (parseInt(postData.cid, 10)) {