Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
unbyte committed Nov 24, 2020
1 parent eba55c8 commit ffabb18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/lib/apps/ClusterInfo/components/StoreLocation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function StoreLocation() {
<StoreLocationTree
dataSource={treeData}
getMinHeight={
() => document.documentElement.clientHeight - 80 - 48 * 2 // 48 = margin of cardInner}
() => document.documentElement.clientHeight - 80 - 48 * 2 // 48 = margin of cardInner
}
/>
</AnimatedSkeleton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default function StoreLocationTree({
.duration(duration)
.attr('width', divWidth)
.attr('height', Math.max(getMinHeight?.() || 0, contentHeight))
console.log(getMinHeight?.())

// update the nodes
const node = gNode.selectAll('g').data(nodes, (d: any) => d.id)

Expand Down

0 comments on commit ffabb18

Please sign in to comment.