Skip to content

Commit

Permalink
Merge pull request #208 from MetaCell/feature/SDSV-14
Browse files Browse the repository at this point in the history
#14 Clicking on graph node should scroll to section on metadata
  • Loading branch information
jrmartin authored Jan 30, 2024
2 parents 592b0a5 + af5f40b commit a1acd4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/GraphViewer/GraphViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import BugReportIcon from '@material-ui/icons/BugReport';
import { selectInstance } from '../../redux/actions';
import { useSelector, useDispatch } from 'react-redux';
import GeppettoGraphVisualization from '@metacell/geppetto-meta-ui/graph-visualization/Graph';
import { GRAPH_SOURCE } from '../../constants';
import {detailsLabel, GRAPH_SOURCE} from '../../constants';
import { rdfTypes, typesModel } from '../../utils/graphModel';
import config from "./../../config/app.json";
import AddRoundedIcon from '@material-ui/icons/AddRounded';
Expand Down Expand Up @@ -251,6 +251,8 @@ const GraphViewer = (props) => {
source: GRAPH_SOURCE
}));
}
const divElement = document.getElementById(node.id + detailsLabel);
divElement?.scrollIntoView({ behavior: 'smooth' });
};

const handleLinkColor = link => {
Expand Down

0 comments on commit a1acd4f

Please sign in to comment.