Skip to content

Commit a5d3e44

Browse files
committed
Merge branch 'feature/483' of https://github.com/MetaCell/NetPyNE-UI into feature/483
2 parents 7504b9c + 92ecb40 commit a5d3e44

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

webapp/components/general/ControlPanelTreeItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ const ControlPanelTreeItem = (props) => {
227227

228228
return (
229229
<TreeItem
230-
className={`${classes.treeItem} ${children.length == 0 ? classes.leafTreeItem : ''}`}
230+
className={`${classes.treeItem} ${children?.length === 0 ? classes.leafTreeItem : ''}`}
231231
nodeId={nodeId}
232232
label={(
233233
<Grid

webapp/components/general/ExperimentControlPanel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ const ExperimentControlPanel = (props) => {
117117

118118
const flatList = [];
119119
instancesMap.forEach((value, key) => {
120-
flatList.push(value);
120+
if (value.key.includes(filter)) {
121+
flatList.push(value);
122+
}
121123
});
122124
return flatList;
123125
};

0 commit comments

Comments
 (0)