diff --git a/src/lib/components/chat/Artifacts.svelte b/src/lib/components/chat/Artifacts.svelte index 9bb5342e7..0a8ab956a 100644 --- a/src/lib/components/chat/Artifacts.svelte +++ b/src/lib/components/chat/Artifacts.svelte @@ -120,6 +120,11 @@ } }); + if (contents.length === 0) { + showControls.set(false); + showArtifacts.set(false); + } + selectedContentIdx = contents ? contents.length - 1 : 0; };