Skip to content
Snippets Groups Projects
Commit 44fc89ee authored by David Bühler's avatar David Bühler
Browse files

[Ivette] Dive graph: adds a generic name to multiple selections.

Avoids status messages about "undefined".
parent 45988c57
No related branches found
No related tags found
No related merge requests found
...@@ -645,8 +645,10 @@ const GraphView = React.forwardRef<GraphViewRef | undefined, GraphViewProps>( ...@@ -645,8 +645,10 @@ const GraphView = React.forwardRef<GraphViewRef | undefined, GraphViewProps>(
dive.onSelect = (locations) => { dive.onSelect = (locations) => {
if (_.isEqual(locations, selection?.multiple?.allSelections)) if (_.isEqual(locations, selection?.multiple?.allSelections))
updateSelection('MULTIPLE_CYCLE'); updateSelection('MULTIPLE_CYCLE');
else else {
updateSelection({ locations, index: 0 }); const name = "Dive graph";
updateSelection({ name, locations, index: 0 });
}
}; };
// Updates the graph according to the selected marker. // Updates the graph according to the selected marker.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment