Skip to content

Commit

Permalink
update relations
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaLysiuk committed Jan 17, 2024
1 parent a19da75 commit 2a1aa4f
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,8 @@ export const Field: React.FC<FieldProps> = ({ node }) => {
const { parentTypes, setSelectedNodeId, getParentOfField, focusMode } =
useTreesState();
const { setEditMode, printPreviewActive } = useRelationsState();
const {
setTypeRelatedNodesToFocusedNode,
typeRelatedToFocusedNode,
focusedNodes,
filteredFocusedNodes,
} = useRelationNodesState();
const { setTypeRelatedNodesToFocusedNode, filteredFocusedNodes } =
useRelationNodesState();
const nodeClick = useCallback(
(n: ParserField) => {
const parent = getParentOfField(n);
Expand All @@ -70,7 +66,7 @@ export const Field: React.FC<FieldProps> = ({ node }) => {
});
}
},
[typeRelatedToFocusedNode, focusedNodes]
[focusMode, filteredFocusedNodes]
);
return (
<Main
Expand Down

0 comments on commit 2a1aa4f

Please sign in to comment.