Skip to content

Commit cf11fcd

Browse files
Aditya SinghAditya Singh
authored andcommitted
feat: minor refactor
1 parent c374ae1 commit cf11fcd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

frontend/src/container/LogDetailedView/TableView/useAsyncJSONProcessing.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ const useAsyncJSONProcessing = (
3333
return (): void => {};
3434
}
3535

36-
// Check if the JSON is too large
37-
const json = JSON.stringify(value);
38-
const byteSize = new Blob([json]).size;
36+
// Check if the string is too large
37+
const byteSize = new Blob([value]).size;
3938
if (byteSize > MAX_BODY_BYTES) {
4039
return (): void => {};
4140
}

0 commit comments

Comments
 (0)