Skip to content

Commit

Permalink
Fixes bug in com.sourcegraph.cody.history.ChatHistoryPanel.updatePres…
Browse files Browse the repository at this point in the history
…entation
  • Loading branch information
mkondratek committed Apr 3, 2024
1 parent 96b3eea commit 24fbc1a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ class ChatHistoryPanel(
}
} else {
val currentPeriodText = DurationGroupFormatter.format(chat.getUpdatedTimeAt())
val currentPeriod = root.periods().find { it.periodText == currentPeriodText } ?: return
val currentPeriod =
root.periods().find { it.periodText == currentPeriodText }
?: PeriodNode(currentPeriodText)
val leafWithChangedPeriod =
root
.periods()
Expand Down

0 comments on commit 24fbc1a

Please sign in to comment.