Skip to content

Commit

Permalink
fix bug (#1957)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighdouglas authored Feb 24, 2024
1 parent ac5ce6a commit 0399ec9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ interface SearchViewModel {
projects: List<Project>,
selectedProject: Project
): Pair<Project, RefTag> {
val isFirstResult = selectedProject === projects[0]
val isFirstResult = if (projects.isEmpty()) false else selectedProject === projects[0]
return if (searchTerm.isEmpty()) {
if (isFirstResult) Pair.create(
selectedProject,
Expand Down

0 comments on commit 0399ec9

Please sign in to comment.