From dc35bf8bb5280eb74196161df8587a4e163e0469 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 26 Apr 2024 10:41:09 -0400 Subject: [PATCH] fix: getCategoryById to return shallow clone of object --- src/categories/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/categories/index.js b/src/categories/index.js index 54346d5a6409..5e5efd921a6b 100644 --- a/src/categories/index.js +++ b/src/categories/index.js @@ -64,7 +64,7 @@ Categories.getCategoryById = async function (data) { category: category, ...data, }); - return result.category; + return { ...result.category }; }; Categories.getAllCidsFromSet = async function (key) {