Skip to content

Commit

Permalink
use xarrow hook correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
finlay-jisc committed Nov 21, 2023
1 parent fffd61c commit f3ffa18
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ui/src/components/Publication/Visualization/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ type BoxProps = BoxEntry & {
};

const Box: React.FC<BoxProps> = (props): React.ReactElement => {
const updateXarrow = useXarrow();
useEffect(() => {
updateXarrow();
}, [updateXarrow]);
useXarrow();
// pick main author to display on visualization box
const mainAuthor = useMemo(() => {
const correspondingAuthor = {
Expand Down

0 comments on commit f3ffa18

Please sign in to comment.