fix(TreeSelect): should not render empty nav (#4663)

This commit is contained in:
neverland
2019-10-09 00:17:09 +08:00
committed by GitHub
parent d4157e656a
commit a18a9c5701

View File

@@ -56,7 +56,9 @@ function TreeSelect(
: activeId === id;
}
const Navs = items.map(item => (
const Navs = items
.filter(item => item.text)
.map(item => (
<SidebarItem
dot={item.dot}
info={item.info}