From ff6fdc1a30abd9f4d667a8c706cf035b6498a8e4 Mon Sep 17 00:00:00 2001 From: Sayooj Surendran Date: Wed, 28 Aug 2024 19:42:37 +0530 Subject: [PATCH 1/2] Fix console.table --- src/Component/react-inspector/index.tsx | 33 +++++++++++++++++++------ 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/src/Component/react-inspector/index.tsx b/src/Component/react-inspector/index.tsx index eafde8b..0bd6f2b 100644 --- a/src/Component/react-inspector/index.tsx +++ b/src/Component/react-inspector/index.tsx @@ -108,14 +108,31 @@ class CustomInspector extends React.PureComponent { return ( {table ? ( - - - -
+ + + + + + + + + {Object.keys(data).map((key) => { + if (data[key]?.startsWith?.('__console_feed_')) return null + return ( + + + + + ) + })} + +
(index)Value
+ {key} + + {data[key]} +
) : dom ? ( From bd8ea5a0970af6354dae36bd751ed2c02c4f0e25 Mon Sep 17 00:00:00 2001 From: Sayooj Surendran Date: Wed, 28 Aug 2024 19:50:53 +0530 Subject: [PATCH 2/2] Remove promise status shown as incorrect --- src/Component/react-inspector/index.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Component/react-inspector/index.tsx b/src/Component/react-inspector/index.tsx index 0bd6f2b..3eecb1b 100644 --- a/src/Component/react-inspector/index.tsx +++ b/src/Component/react-inspector/index.tsx @@ -167,13 +167,7 @@ class CustomInspector extends React.PureComponent { } if (constructor === 'Promise') - return ( - - Promise {`{`} - {``} - {`}`} - - ) + return Promise {`{}`} if (data instanceof HTMLElement) return (