Fix inspector hidden state

This commit is contained in:
Robert Long 2021-11-01 12:49:26 -07:00
parent dd3b4cc6be
commit d927e138d0

View file

@ -158,26 +158,28 @@ 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={{ ...state,
...state, roomStateEvents,
roomStateEvents, toDeviceEvents,
toDeviceEvents, toDeviceEventsByCall,
toDeviceEventsByCall, }}
}} name={null}
name={null} indentWidth={2}
indentWidth={2} collapsed={1}
collapsed={1} displayDataTypes={false}
displayDataTypes={false} displayObjectSize={false}
displayObjectSize={false} enableClipboard={false}
enableClipboard={false} style={{ height: "100%", overflowY: "scroll" }}
style={{ height: "100%", overflowY: "scroll" }} />
/>
)}
</Resizable> </Resizable>
); );
} }