mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-12-21 13:41:18 +01:00
frontend: only display "render count" when in development mode
This commit is contained in:
@@ -32,7 +32,9 @@ export const ButtonComponent = React.memo((props: ButtonComponentProps) => {
|
||||
|
||||
return (
|
||||
<div className={'button'} 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} />
|
||||
<ToggleButton
|
||||
|
||||
Reference in New Issue
Block a user