From 92ba46b2f55b2a8cad73eb3af2137b5695ced89a Mon Sep 17 00:00:00 2001 From: Rajat Dabade Date: Thu, 28 Sep 2023 09:15:12 +0530 Subject: [PATCH] fix: copy to clipboard without quotes (#3605) --- frontend/src/container/LogDetailedView/TableView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/container/LogDetailedView/TableView.tsx b/frontend/src/container/LogDetailedView/TableView.tsx index 28910afbde..92840bde45 100644 --- a/frontend/src/container/LogDetailedView/TableView.tsx +++ b/frontend/src/container/LogDetailedView/TableView.tsx @@ -164,6 +164,8 @@ function TableView({ width: 70, ellipsis: false, render: (field, record): JSX.Element => { + const textToCopy = field.slice(1, -1); + if (record.field === 'body') { const parsedBody = recursiveParseJSON(field); if (!isEmpty(parsedBody)) { @@ -174,7 +176,7 @@ function TableView({ } return ( - + {field} );