Skip to content

Commit

Permalink
fix: missing memo dependencies and css
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Aug 1, 2023
1 parent e362890 commit 2859f29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/src/components/sankey/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const Sankey = ({ data, width, height }: SankeyProps) => {
},
],
};
}, [data, themeContext]);
}, [data, themeContext, height]);

return (
<ReactEChartsCore
Expand Down
4 changes: 2 additions & 2 deletions src/client/src/views/forwards/forwardSankey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const SANKEY_HEIGHT_DESKTOP = '800px';

const Wrapper = styled.div`
height: ${SANKEY_HEIGHT_DESKTOP};
maxheight: ${SANKEY_HEIGHT_DESKTOP};
max-height: ${SANKEY_HEIGHT_DESKTOP};
width: 100%;
@media (${mediaWidths.mobile}) {
Expand Down Expand Up @@ -50,7 +50,7 @@ export const ForwardSankey = ({ days }: { days: number }) => {
});

return orderedData;
}, [data]);
}, [data, loading]);

if (loading || !data?.getForwards?.length) {
return null;
Expand Down

0 comments on commit 2859f29

Please sign in to comment.