Skip to content

Commit

Permalink
display detail unavailable message for invalid/private bundles (#1785)
Browse files Browse the repository at this point in the history
  • Loading branch information
yipenghe authored Dec 1, 2019
1 parent f2fdd4b commit 492aaac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ class BundleDetail extends React.Component<
stderr,
fileContents } = this.state;

if (!bundleInfo) {
return null;
if (!bundleInfo || bundleInfo.bundle_type === 'private') {
return <div>Detail not available for this bundle</div>
}

return (
Expand Down

0 comments on commit 492aaac

Please sign in to comment.