Collapse all except the first sidebar category by default (#5)
* Collapse all except the first sidebar category by default * Explanatory comment
This commit is contained in:
Родитель
a9f78168c7
Коммит
3677c48bc2
|
@ -71,10 +71,13 @@ export const ItemPanel: React.FunctionComponent<IProps> = (props) => {
|
|||
category.title = Localizer.l(category.searchKeys[0] as string);
|
||||
return {
|
||||
...category,
|
||||
expanded: false,
|
||||
children,
|
||||
};
|
||||
}
|
||||
);
|
||||
// collapse all except first by default
|
||||
treeNodes[0].expanded = true;
|
||||
setTreeData(treeNodes);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче