Skip to content

Commit 9ed6463

Browse files
committed
feat: improved search filter #3
1 parent dfad9ea commit 9ed6463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ handleUnpinNote = async (noteid) => {
512512
});
513513

514514
this.setState({ filteredNotes });
515-
if (filteredNotes.length === 1) {
515+
if (filteredNotes.length > 0) {
516516
this.handleNoteListItemClick(null, filteredNotes[0]);
517517
}
518518
}

0 commit comments

Comments
 (0)