Skip to content

Commit

Permalink
fix: getCategoryById to return shallow clone of object
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Apr 26, 2024
1 parent c9a9255 commit dc35bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/categories/index.js
Expand Up @@ -64,7 +64,7 @@ Categories.getCategoryById = async function (data) {
category: category,
...data,
});
return result.category;
return { ...result.category };
};

Categories.getAllCidsFromSet = async function (key) {
Expand Down

0 comments on commit dc35bf8

Please sign in to comment.