Merge pull request #2209 from iamyashkhandelwal/bugfix/user-website-error
Fixed error when opening user websites in the settings.
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import { Loading } from 'react-basics';
|
|
||||||
import useApi from 'hooks/useApi';
|
import useApi from 'hooks/useApi';
|
||||||
import WebsitesTable from 'components/pages/settings/websites/WebsitesTable';
|
import WebsitesTable from 'components/pages/settings/websites/WebsitesTable';
|
||||||
import useMessages from 'hooks/useMessages';
|
import useMessages from 'hooks/useMessages';
|
||||||
@@ -18,10 +17,6 @@ export function UserWebsites({ userId }) {
|
|||||||
);
|
);
|
||||||
const hasData = data && data.length !== 0;
|
const hasData = data && data.length !== 0;
|
||||||
|
|
||||||
if (isLoading) {
|
|
||||||
return <Loading icon="dots" style={{ minHeight: 300 }} />;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{hasData && (
|
{hasData && (
|
||||||
|
|||||||
Reference in New Issue
Block a user