Skip to content

Commit

Permalink
Merge pull request #427 from PHOENIXCONTACT/bugfix/slow-config-editor
Browse files Browse the repository at this point in the history
Prevent hidden config values from being rendered
  • Loading branch information
seveneleven authored May 23, 2024
2 parents 5558a84 + 36ca13b commit b26e826
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ export default class ClassEditor extends CollapsibleEntryEditorBase<ClassEditorS
return (
<div>
<Collapse in={this.props.IsExpanded}>
<Container style={{paddingRight: "0"}}>
{this.preRenderConfigEditor()}
</Container>
{
this.props.IsExpanded &&
<Container style={{paddingRight: "0"}}>
{this.preRenderConfigEditor()}
</Container>
}
</Collapse>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default class CollectionEditor extends CollapsibleEntryEditorBase<Collect
return (
<Collapse in={this.props.IsExpanded}>
<Grid container={true} item={true} sx={{paddingLeft: 3, paddingRight: 0}}>
{
{ this.props.IsExpanded &&
this.props.Entry.subEntries.map((entry, idx) => {
if (Entry.isClassOrCollection(entry)) {
return (
Expand Down

0 comments on commit b26e826

Please sign in to comment.