Ver Fonte

refac: artifacts panel behaviour

Timothy J. Baek há 7 meses atrás
pai
commit
822024f44e
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      src/lib/components/chat/Artifacts.svelte

+ 5 - 0
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;
 	};