Fix Yatai service web ui bug. Display bento bundles with no artifacts declared
@@ -81,6 +81,7 @@ const artifactMetadataToTableContent = (
const ArtifactsTable: React.FC<{ artifacts: Array<IArtifactProps> }> = ({
artifacts,
}) => {
+ if (artifacts && artifacts.length > 0) {
const artifactsTableContent = artifacts.map((artifact) => {
return {
content: [
@@ -100,6 +101,14 @@ const ArtifactsTable: React.FC<{ artifacts: Array<IArtifactProps> }> = ({
/>
</Section>
);
+ } else {
+ return (
+ <Section>
+ <h2>Artifacts</h2>
+ <p>No Artifacts</p>
+ </Section>
+ )
+ }
};
export default ArtifactsTable;
