adds null check to tabsRect
This commit is contained in:
parent
5944e471c7
commit
2690ea7fe3
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ function Tabs(props: TabsProps) {
|
|||
<div
|
||||
className="tab__divider"
|
||||
style={{
|
||||
left: selectedRect && selectedRect.left - tabsRect.left,
|
||||
left: selectedRect && tabsRect && selectedRect.left - tabsRect.left,
|
||||
width: selectedRect && selectedRect.width,
|
||||
}}
|
||||
/>
|
||||
|
|
Loading…
Add table
Reference in a new issue