mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 00:27:11 +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 changed files with 0 additions and 5 deletions
|
|
@ -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 && (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue