mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
Merge pull request #2209 from iamyashkhandelwal/bugfix/user-website-error
Fixed error when opening user websites in the settings.
This commit is contained in:
commit
21cdb06571
@ -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 && (
|
||||
|
Loading…
Reference in New Issue
Block a user