mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-12 07:57:11 +02:00
frontend: only display "render count" when in development mode
This commit is contained in:
@ -19,8 +19,10 @@ export const ListComponent = React.memo((props: ListComponentProps) => {
|
||||
const { name, parent_path, value, docString } = props;
|
||||
|
||||
return (
|
||||
<div className={'component boolean'} id={parent_path.concat(name)}>
|
||||
<p>Render count: {renderCount.current}</p>
|
||||
<div className={'component list'} id={parent_path.concat(name)}>
|
||||
{process.env.NODE_ENV === 'development' && (
|
||||
<p>Render count: {renderCount.current}</p>
|
||||
)}
|
||||
<DocStringComponent docString={docString} />
|
||||
{value.map((item, index) => {
|
||||
return (
|
||||
|
Reference in New Issue
Block a user