Explorar o código

refac: artifacts panel behaviour

Timothy J. Baek hai 6 meses
pai
achega
822024f44e
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;
 	};