Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit ecc7891

Browse files
apetovjasonLaster
authored andcommitted
Fixed empty item in the search show, issue #5785 (#5802)
* fixed empty item in the search show * Use strict equal
1 parent a658854 commit ecc7891

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/shared/ResultList.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ export default class ResultList extends Component<Props> {
3333
}
3434

3535
renderListItem = (item: any, index: number) => {
36+
if (item.value === "/" && item.title === "") {
37+
item.title = "(index)";
38+
}
39+
3640
const { selectItem, selected } = this.props;
3741
const props = {
3842
onClick: event => selectItem(event, item, index),

0 commit comments

Comments
 (0)