Return team websites under dashboard.

This commit is contained in:
Mike Cao committed 2023-07-27 13:20:22 -07:00
1 parent f4aa8f9661
commit a84d9a4c7c
6 files changed
+86 -30

No files matched your search

+3 -1
View File
@@ -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();