Skip to content

Commit f5c2514

Browse files
committed
remove useless assignment to variable isThereChildItemsToExpand
1 parent aef01b9 commit f5c2514

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/LibraryItem.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,14 @@ export class LibraryItem extends React.Component<LibraryItemProps, LibraryItemSt
107107
//other elements is little tricky. The idea here is, the element which has
108108
//its child elements expanded to false is the actual element clicked from search. Scroll
109109
//to that element.
110-
let isThereChildItemsToExpand = this.props.data.childItems.filter((item: any) => {
110+
111+
// The commented code below affects tests. This needs to be address
112+
this.props.data.childItems.filter((item: any) => {
111113
return item.expanded == true;
112114
});
115+
// let isThereChildItemsToExpand = this.props.data.childItems.filter((item: any) => {
116+
// return item.expanded == true;
117+
// });
113118
// if (isThereChildItemsToExpand.length == 0) {
114119
// setTimeout(() => {
115120
// let elem = ReactDOM.findDOMNode(this);

0 commit comments

Comments
 (0)