From cc179a1f762f59612164ce53e2b3eb5ff52224d5 Mon Sep 17 00:00:00 2001 From: Sny Date: Thu, 17 Oct 2024 08:19:56 +0530 Subject: [PATCH] OpenConceptLab/ocl_issues#1945 | deleting search_meta from CSV download --- src/common/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/utils.js b/src/common/utils.js index 3353f65a..bb9d6761 100644 --- a/src/common/utils.js +++ b/src/common/utils.js @@ -310,6 +310,7 @@ export const arrayToCSV = objArray => { let str = `${Object.keys(array[0]).map(value => `"${value}"`).join(",")}` + '\r\n'; return array.reduce((str, next) => { + delete next.search_meta; str += `${Object.values(next).map(value => isObject(value) ? `"${JSON.stringify(value)}"` : `"${value}"`).join(",")}` + '\r\n'; return str; }, str);