Refactor of team websites.
This commit is contained in:
@@ -63,7 +63,7 @@ export function Dashboard() {
|
||||
{editing && <DashboardEdit />}
|
||||
{!editing && (
|
||||
<>
|
||||
<WebsiteChartList websites={data} showCharts={showCharts} limit={pageSize} />
|
||||
<WebsiteChartList websites={data as any} showCharts={showCharts} limit={pageSize} />
|
||||
<Pager
|
||||
page={page}
|
||||
pageSize={pageSize}
|
||||
|
||||
@@ -19,7 +19,7 @@ export function DashboardEdit() {
|
||||
const { get, useQuery } = useApi();
|
||||
const { data: result } = useQuery({
|
||||
queryKey: ['websites'],
|
||||
queryFn: () => get('/websites', { includeTeams: 1 }),
|
||||
queryFn: () => get('/websites'),
|
||||
});
|
||||
const { data: websites } = result || {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user