Skip to content

Commit

Permalink
Update ChatMessage.razor
Browse files Browse the repository at this point in the history
  • Loading branch information
BeepBeepBopBop committed Dec 1, 2024
1 parent 6e120df commit 121ab83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions LM-Kit-Maestro/UI/Razor/Components/ChatMessage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@

if (HasMultipleResponses)
{
ResponseIndex = MessageViewModel.PreviousContent.Count - 1;
ResponseIndex = MessageViewModel.PreviousContent!.Count - 1 + 1;
}
}
}
Expand Down Expand Up @@ -350,22 +350,22 @@
}
}

private async Task OnRegenerateResponseButtonClicked()
private void OnRegenerateResponseButtonClicked()
{
MessageViewModel.ParentConversation.RegenerateResponseCommand.Execute(MessageViewModel);
}

private async Task OnPreviousResponseButtonClicked()
private void OnPreviousResponseButtonClicked()
{
if (ResponseIndex > 0)
{
ResponseIndex--;
}
}

private async Task OnNextResponseButtonClicked()
private void OnNextResponseButtonClicked()
{
if (ResponseIndex < (messageViewModel.PreviousContent.Count + 1) - 1)
if (ResponseIndex < (MessageViewModel.PreviousContent.Count + 1) - 1)
{
ResponseIndex++;
}
Expand Down

0 comments on commit 121ab83

Please sign in to comment.