Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
erasta committed Nov 26, 2024
1 parent 6ab85d2 commit b64992f
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions client/src/Experiment/ExperimentList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,6 @@ export const ExperimentList = ({ fullscreen, showConfig, setShowConfig }) => {
setExpandedNodes(nodeIds);
};

useEffect(() => {
if (!experiment) {
setShowConfig(SHOW_ALL_EXPERIMENTS);
// setExpanded(experiments.map(e => EXPERIMENT_NODE_ID_PREFIX + e));
// } else if (trialName) {
// setExpanded([
// experiment.trackUuid,
// experimentName + "_trialTypes",
// trialType.trackUuid,
// experimentName + "_deviceTypes",
// trial.trackUuid,
// ]);
}
}, [experimentName, trialTypeName, trialName]);

useEffect(() => {
if (experiment) {
addActionOnMap((mapObject) => {
Expand All @@ -101,6 +86,8 @@ export const ExperimentList = ({ fullscreen, showConfig, setShowConfig }) => {
if (!expandedNodes.includes(experiment.trackUuid)) {
handleNodeToggle(undefined, [...expandedNodes, experiment.trackUuid]);
}
} else {
setShowConfig(SHOW_ALL_EXPERIMENTS);
}
}, [experimentName]);

Expand Down

0 comments on commit b64992f

Please sign in to comment.