chore: eslint prefer-destructuring

This commit is contained in:
Peter Jaszkowiak
2021-02-06 14:10:15 -07:00
committed by Julian Lam
parent 8d1462ffd8
commit 23f212a4c0
143 changed files with 192 additions and 195 deletions

View File

@@ -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');