Skip to content

Commit

Permalink
fix: unintentional object pollution by buildForSelectCategories
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Apr 26, 2024
1 parent dc35bf8 commit 88a5dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/categories/index.js
Expand Up @@ -370,7 +370,7 @@ async function getSelectData(cids, fields) {
}

Categories.buildForSelectCategories = function (categories, fields, parentCid) {
function recursive(category, categoriesData, level, depth) {
function recursive({ ...category }, categoriesData, level, depth) {
const bullet = level ? '• ' : '';
category.value = category.cid;
category.level = level;
Expand Down

0 comments on commit 88a5dfb

Please sign in to comment.