fix: getCategoryById to return shallow clone of object

This commit is contained in:
Julian Lam
2024-04-26 10:41:09 -04:00
parent c9a92555f0
commit dc35bf8bb5

View File

@@ -64,7 +64,7 @@ Categories.getCategoryById = async function (data) {
category: category,
...data,
});
return result.category;
return { ...result.category };
};
Categories.getAllCidsFromSet = async function (key) {