Преглед изворни кода

refac: artifacts panel behaviour

Timothy J. Baek пре 6 месеци
родитељ
комит
822024f44e
1 измењених фајлова са 5 додато и 0 уклоњено
  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;
 		selectedContentIdx = contents ? contents.length - 1 : 0;
 	};
 	};