adds null check to tabsRect

This commit is contained in:
Oleg Silkin 2020-01-13 13:13:55 -05:00 committed by Sean Yesmunt
parent 5944e471c7
commit 2690ea7fe3

View file

@ -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,
}}
/>