mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: add back localCategories to categorySearch when defaultCategories is supplied
This commit is contained in:
@@ -13,6 +13,9 @@ define('categorySearch', ['alerts', 'bootstrap', 'api'], function (alerts, boots
|
|||||||
let localCategories = [];
|
let localCategories = [];
|
||||||
if (Array.isArray(options.localCategories)) {
|
if (Array.isArray(options.localCategories)) {
|
||||||
localCategories = options.localCategories.map(c => ({ ...c }));
|
localCategories = options.localCategories.map(c => ({ ...c }));
|
||||||
|
if (categoriesList) {
|
||||||
|
categoriesList = [...localCategories, ...categoriesList];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
options.selectedCids = options.selectedCids || ajaxify.data.selectedCids || [];
|
options.selectedCids = options.selectedCids || ajaxify.data.selectedCids || [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user