mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-02-19 00:18:40 +01:00
frontend: only display "render count" when in development mode
This commit is contained in:
@@ -30,7 +30,9 @@ export const EnumComponent = React.memo((props: EnumComponentProps) => {
|
||||
|
||||
return (
|
||||
<div className={'component boolean'} id={parent_path.concat('.' + name)}>
|
||||
<p>Render count: {renderCount.current}</p>
|
||||
{process.env.NODE_ENV === 'development' && (
|
||||
<p>Render count: {renderCount.current}</p>
|
||||
)}
|
||||
<DocStringComponent docString={docString} />
|
||||
<Row>
|
||||
<Col className="col-5 d-flex align-items-center">
|
||||
|
||||
Reference in New Issue
Block a user