Skip to content

Commit 62733b7

Browse files
authored
refactor: render null instead of empty fragment when hideTabs is true (#770) (#771)
* Initial plan * refactor: render null instead of empty fragment when hideTabs is true #1 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 4da929f commit 62733b7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/views/EntityDetailView/entityDetailView.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ export const EntityDetailView = (props: EntityDetailViewProps): JSX.Element => {
7979
) : undefined
8080
}
8181
Tabs={
82-
hideTabs ? (
83-
<></>
84-
) : (
82+
hideTabs ? null : (
8583
<Tabs onTabChange={onTabChange} tabs={tabs} value={tabRoute} />
8684
)
8785
}

0 commit comments

Comments
 (0)