mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Return team websites under dashboard.
This commit is contained in:
parent
f4aa8f9661
commit
a84d9a4c7c
6 changed files with 86 additions and 30 deletions
|
|
@ -18,7 +18,9 @@ export function Dashboard({ userId }) {
|
|||
const { showCharts, limit, editing } = dashboard;
|
||||
const [max, setMax] = useState(limit);
|
||||
const { get, useQuery } = useApi();
|
||||
const { data, isLoading, error } = useQuery(['websites'], () => get('/websites', { userId }));
|
||||
const { data, isLoading, error } = useQuery(['websites'], () =>
|
||||
get('/websites', { userId, includeTeams: 1 }),
|
||||
);
|
||||
const hasData = data && data.length !== 0;
|
||||
const { dir } = useLocale();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue