diff --git a/src/webui/pages/version/index.js b/src/webui/pages/version/index.js index 5f4672ba6..ad7cefb85 100644 --- a/src/webui/pages/version/index.js +++ b/src/webui/pages/version/index.js @@ -10,6 +10,7 @@ import DetailContainer from '../../components/DetailContainer'; import DetailSidebar from '../../components/DetailSidebar'; import { callDetailPage } from '../../utils/calls'; import { getRouterPackageName } from '../../utils/package'; +import NotFound from '../../components/NotFound'; export const DetailContext = React.createContext(); @@ -105,7 +106,11 @@ class VersionPage extends Component { render() { const { isLoading, packageMeta, readMe, packageName } = this.state; - if (isLoading === false) { + if (isLoading) { + return ; + } else if (!packageMeta) { + return ; + } else { return ( @@ -118,8 +123,6 @@ class VersionPage extends Component { ); - } else { - return ; } }