mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-16 11:49:30 +02:00
fix(build): Resolve circular dependencies and type errors
This commit is contained in:
1 parent
f8ddb44e38
commit
e7e9a2fb1b
5 files changed
+6
-6
No files matched your search
@@ -16,7 +16,7 @@ export function AnalyticsDashboard() {
|
||||
const { toast } = useToast();
|
||||
|
||||
// Fetch Pages
|
||||
const { data: pages = [], isLoading: isLoadingPages } = useQuery({
|
||||
const { data: pages = [], isLoading: isLoadingPages } = useQuery<any[]>({
|
||||
queryKey: ['/api/pages'],
|
||||
});
|
||||
|
||||
@@ -28,7 +28,7 @@ export function AnalyticsDashboard() {
|
||||
}, [pages, selectedPageId]);
|
||||
|
||||
// Fetch History for selected page
|
||||
const { data: history = [], isLoading: isLoadingHistory } = useQuery({
|
||||
const { data: history = [], isLoading: isLoadingHistory } = useQuery<any[]>({
|
||||
queryKey: [`/api/analytics/pages/${selectedPageId}/history`],
|
||||
enabled: !!selectedPageId,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user