mirror of https://github.com/laurent22/joplin.git
pull/5488/head
parent
7a9ec627ee
commit
0d40026d8b
|
@ -139,9 +139,10 @@ class NoteSearchBarComponent extends React.Component {
|
||||||
color: theme.colorFaded,
|
color: theme.colorFaded,
|
||||||
backgroundColor: theme.backgroundColor,
|
backgroundColor: theme.backgroundColor,
|
||||||
});
|
});
|
||||||
const matchesFoundString = (query.length > 0 && this.props.resultCount > 0) ? (
|
|
||||||
|
const matchesFoundString = (query.length > 0) ? (
|
||||||
<div style={textStyle}>
|
<div style={textStyle}>
|
||||||
{`${this.props.selectedIndex + 1} / ${this.props.resultCount}`}
|
{`${this.props.resultCount === 0 ? 0 : this.props.selectedIndex + 1} / ${this.props.resultCount}`}
|
||||||
</div>
|
</div>
|
||||||
) : null;
|
) : null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue