Merge pull request #2209 from iamyashkhandelwal/bugfix/user-website-error

Fixed error when opening user websites in the settings.
This commit is contained in:
Mike Cao 2023-08-18 13:32:48 -10:00 committed by GitHub
commit 21cdb06571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,3 @@
import { Loading } from 'react-basics';
import useApi from 'hooks/useApi';
import WebsitesTable from 'components/pages/settings/websites/WebsitesTable';
import useMessages from 'hooks/useMessages';
@ -18,10 +17,6 @@ export function UserWebsites({ userId }) {
);
const hasData = data && data.length !== 0;
if (isLoading) {
return <Loading icon="dots" style={{ minHeight: 300 }} />;
}
return (
<div>
{hasData && (