Skip to content

Commit

Permalink
fix: session title bug
Browse files Browse the repository at this point in the history
Closes #213
  • Loading branch information
fmaclen committed Oct 19, 2024
1 parent b979512 commit 17542c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/sessions/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
let messagesWindow: HTMLDivElement;
let userScrolledUp = false;
$: $editor.isNewSession = !$session?.messages.length;
$: if (data.id) handleSessionChange();
onMount(() => {
Expand All @@ -70,8 +69,9 @@
});
async function handleSessionChange() {
$editor.view = 'messages';
session = writable(loadSession(data.id));
$editor.view = 'messages';
$editor.isNewSession = !$session?.messages.length;
scrollToBottom();
}
Expand Down

0 comments on commit 17542c6

Please sign in to comment.