refac: artifacts panel behaviour

This commit is contained in:
Timothy J. Baek committed 2024-10-20 22:04:21 -07:00
1 parent f02ef01e0c
commit 822024f44e
1 file changed
+5
+5
View File
@@ -120,6 +120,11 @@
}
});
if (contents.length === 0) {
showControls.set(false);
showArtifacts.set(false);
}
selectedContentIdx = contents ? contents.length - 1 : 0;
};