refac: artifacts panel behaviour

This commit is contained in:
Timothy J. Baek 2024-10-20 22:04:21 -07:00
parent f02ef01e0c
commit 822024f44e

View File

@ -120,6 +120,11 @@
}
});
if (contents.length === 0) {
showControls.set(false);
showArtifacts.set(false);
}
selectedContentIdx = contents ? contents.length - 1 : 0;
};