Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Realsen committed Feb 10, 2020
1 parent 31b0bd3 commit 9cd220b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/lib/OutputArtifactLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,9 @@ function filterArtifactUrisByType(
artifactTypeIds.includes(artifact.getTypeId()),
);

const tfdvArtifactsPaths = matchingArtifacts.map(artifact => artifact.getUri()); // uri not empty
const tfdvArtifactsPaths = matchingArtifacts
.map(artifact => artifact.getUri())
.filter(uri => uri); // uri not empty
return tfdvArtifactsPaths;
}

Expand All @@ -520,7 +522,7 @@ async function buildArtifactViewer(script: string[]): Promise<HTMLViewerConfig>
const visualization = await Apis.buildPythonVisualizationConfig(visualizationData);
if (!visualization.htmlContent) {
// TODO: Improve error message with details.
throw new Error('Failed to build TFDV artifact visualization');
throw new Error('Failed to build artifact viewer');
}
return {
htmlContent: visualization.htmlContent,
Expand Down

0 comments on commit 9cd220b

Please sign in to comment.