Pārlūkot izejas kodu

refac: artifacts panel behaviour

Timothy J. Baek 6 mēneši atpakaļ
vecāks
revīzija
822024f44e
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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;
 	};