tests: fix some but not all tests

This commit is contained in:
Julian Lam
2024-04-26 14:10:42 -04:00
parent 40b9dabda3
commit 7645365007
3 changed files with 11 additions and 13 deletions

View File

@@ -49,7 +49,7 @@ module.exports = function (Categories) {
return category;
}, {});
}
categories.splice(cids.indexOf(-1), 1, subset || worldCategory);
categories.splice(cids.indexOf(-1), 1, subset || { ...worldCategory });
}
const result = await plugins.hooks.fire('filter:category.getFields', {