Skip to content

Commit

Permalink
fixContextLineBreak when context is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
juzeon committed Apr 13, 2024
1 parent 0623d8f commit da0b05c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/pages/IndexPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ function scrollChatContextToBottom() {
function fixContextLineBreak() {
if (currentWorkspace.value.context.trim() == '') {
currentWorkspace.value.context = ''
return
}
if (!currentWorkspace.value.context.endsWith("\n\n")) {
Expand Down

0 comments on commit da0b05c

Please sign in to comment.