diff --git a/desktop/flipper-plugin/src/ui/Tabs.tsx b/desktop/flipper-plugin/src/ui/Tabs.tsx index 29f1be69c..c5a1c9d5a 100644 --- a/desktop/flipper-plugin/src/ui/Tabs.tsx +++ b/desktop/flipper-plugin/src/ui/Tabs.tsx @@ -30,9 +30,15 @@ export function Tabs({ return; } const tabKey = - (typeof child.props.tabKey === 'string' && child.props.tabKey) || - (typeof child.props.tab === 'string' && child.props.tab) || - (typeof child.props.key === 'string' && child.props.key) || + (child.hasOwnProperty('tabKey') && + typeof child.props.tabKey === 'string' && + child.props.tabKey) || + (child.hasOwnProperty('tab') && + typeof child.props.tab === 'string' && + child.props.tab) || + (child.hasOwnProperty('key') && + typeof child.props.key === 'string' && + child.props.key) || `tab_${idx}`; keys.push(tabKey); return {