Fix ProfileHoverCard page crash
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1550
This commit is contained in:
parent
690c678e80
commit
85f6c0293e
1 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import React, { lazy, useEffect, useRef } from 'react';
|
import React, { Suspense, lazy, useEffect, useRef } from 'react';
|
||||||
import { Switch, useHistory, useLocation, Redirect } from 'react-router-dom';
|
import { Switch, useHistory, useLocation, Redirect } from 'react-router-dom';
|
||||||
|
|
||||||
import { fetchFollowRequests } from 'soapbox/actions/accounts';
|
import { fetchFollowRequests } from 'soapbox/actions/accounts';
|
||||||
|
@ -510,7 +510,11 @@ const UI: React.FC<IUI> = ({ children }) => {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<ThumbNavigation />
|
<ThumbNavigation />
|
||||||
|
|
||||||
|
<Suspense>
|
||||||
<ProfileHoverCard />
|
<ProfileHoverCard />
|
||||||
|
</Suspense>
|
||||||
|
|
||||||
<StatusHoverCard />
|
<StatusHoverCard />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue