mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
chore: eslint prefer-destructuring
This commit is contained in:
committed by
Julian Lam
parent
8d1462ffd8
commit
23f212a4c0
@@ -29,7 +29,7 @@ module.exports = function (Categories) {
|
||||
}
|
||||
const result = await plugins.hooks.fire('filter:category.update', { cid: cid, category: modifiedFields });
|
||||
|
||||
const category = result.category;
|
||||
const { category } = result;
|
||||
const fields = Object.keys(category);
|
||||
// move parent to front, so its updated first
|
||||
const parentCidIndex = fields.indexOf('parentCid');
|
||||
|
||||
Reference in New Issue
Block a user