mirror of
https://github.com/bknd-io/bknd.git
synced 2026-10-23 14:55:11 +00:00
1 parent
5ed1cf19b6
commit
2de12674d9
19 files changed
+1534
-1288
No files matched your search
@@ -42,7 +42,7 @@ export const JsonViewer = ({
|
||||
copyIconProps = {},
|
||||
className,
|
||||
}: JsonViewerProps) => {
|
||||
const size = showSize ? (json === null ? 0 : JSON.stringify(json).length) : undefined;
|
||||
const size = showSize ? (!json ? 0 : JSON.stringify(json).length) : undefined;
|
||||
const formattedSize = formatNumber.fileSize(size ?? 0);
|
||||
const showContext = size || title || showCopy;
|
||||
|
||||
|
||||
Reference in new issue
Block a user