From 5551cf3bb2e017c5a509c068c9b115ee00266118 Mon Sep 17 00:00:00 2001 From: James Wysynski Date: Mon, 11 Jul 2022 06:40:31 -0700 Subject: [PATCH] Fix tab names [again] Summary: child.hasOwnProperty -> child.props.hasOwnProperty for tabs Reviewed By: udat Differential Revision: D37751552 fbshipit-source-id: 78015bbc185387587ce3644c959596cf0a661ddf --- desktop/flipper-plugin/src/ui/Tabs.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/flipper-plugin/src/ui/Tabs.tsx b/desktop/flipper-plugin/src/ui/Tabs.tsx index c5a1c9d5a..d5a5ad685 100644 --- a/desktop/flipper-plugin/src/ui/Tabs.tsx +++ b/desktop/flipper-plugin/src/ui/Tabs.tsx @@ -30,13 +30,13 @@ export function Tabs({ return; } const tabKey = - (child.hasOwnProperty('tabKey') && + (child.props.hasOwnProperty('tabKey') && typeof child.props.tabKey === 'string' && child.props.tabKey) || - (child.hasOwnProperty('tab') && + (child.props.hasOwnProperty('tab') && typeof child.props.tab === 'string' && child.props.tab) || - (child.hasOwnProperty('key') && + (child.props.hasOwnProperty('key') && typeof child.props.key === 'string' && child.props.key) || `tab_${idx}`;