Skip to content

Commit 101bca8

Browse files
committed
checked nodes instead of props
1 parent 3d362ac commit 101bca8

File tree

1 file changed

+2
-1
lines changed
  • packages/fast-components-react-base/src/tabs

1 file changed

+2
-1
lines changed

packages/fast-components-react-base/src/tabs/tabs.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import React from "react";
1414
import { DisplayNamePrefix } from "../utilities";
1515
import Tab, { TabManagedClasses } from "./tab";
1616
import TabItem from "./tab-item";
17+
import { isNil } from "lodash-es";
1718
import TabPanel, { TabPanelManagedClasses } from "./tab-panel";
1819
import { TabsHandledProps, TabsItem, TabsProps, TabsUnhandledProps } from "./tabs.props";
1920

@@ -431,7 +432,7 @@ class Tabs extends Foundation<TabsHandledProps, TabsUnhandledProps, TabsState> {
431432
* https://github.com/preactjs/preact-compat/pull/461
432433
*/
433434
private filterChildren(nodes: any): React.ReactNode {
434-
if (this.props.children || this.props.items) {
435+
if (!isNil(nodes)) {
435436
return nodes.filter(Boolean);
436437
}
437438
}

0 commit comments

Comments
 (0)