Fix inspector hidden state
This commit is contained in:
@@ -158,9 +158,12 @@ export function GroupCallInspector({ client, groupCall, show }) {
|
|||||||
return result;
|
return result;
|
||||||
}, [toDeviceEvents]);
|
}, [toDeviceEvents]);
|
||||||
|
|
||||||
|
if (!show) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Resizable enable={{ top: true }} defaultSize={{ height: 200 }}>
|
<Resizable enable={{ top: true }} defaultSize={{ height: 200 }}>
|
||||||
{show && (
|
|
||||||
<ReactJson
|
<ReactJson
|
||||||
theme="monokai"
|
theme="monokai"
|
||||||
src={{
|
src={{
|
||||||
@@ -177,7 +180,6 @@ export function GroupCallInspector({ client, groupCall, show }) {
|
|||||||
enableClipboard={false}
|
enableClipboard={false}
|
||||||
style={{ height: "100%", overflowY: "scroll" }}
|
style={{ height: "100%", overflowY: "scroll" }}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</Resizable>
|
</Resizable>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user