mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-09 09:35:02 +09:00
JS-4200: HeaderMainGraph as functional component
This commit is contained in:
parent
86bff1469a
commit
e8f4c31d92
4 changed files with 49 additions and 45 deletions
5
dist/workers/graph.js
vendored
5
dist/workers/graph.js
vendored
|
@ -623,7 +623,9 @@ onClick = ({ x, y }) => {
|
|||
|
||||
onSelect = ({ x, y, selectRelated }) => {
|
||||
const d = getNodeByCoords(x, y);
|
||||
let related = [];
|
||||
|
||||
let related = [];
|
||||
|
||||
if (d) {
|
||||
if (selectRelated) {
|
||||
related = edgeMap.get(d.id);
|
||||
|
@ -637,6 +639,7 @@ onSetRootId = ({ x, y }) => {
|
|||
const d = getNodeByCoords(x, y);
|
||||
if (d) {
|
||||
this.setRootId({ rootId: d.id });
|
||||
send('setRootId', { node: d.id });
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue