Merge pull request #6685 from marshmalien/fix-user-loading

Fix route bug in User view

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-04-13 20:00:25 +00:00
committed by GitHub

View File

@@ -146,7 +146,7 @@ class User extends Component {
<UserTokens id={Number(match.params.id)} />
</Route>
<Route key="not-found" path="*">
!hasContentLoading && (
{!hasContentLoading && (
<ContentError isNotFound>
{match.params.id && (
<Link to={`/users/${match.params.id}/details`}>
@@ -154,9 +154,8 @@ class User extends Component {
</Link>
)}
</ContentError>
)
)}
</Route>
,
</Switch>
</Card>
</PageSection>