Skip to content

Commit b5febeb

Browse files
committed
fix analytics on dashboard
1 parent 69ebc3a commit b5febeb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • apps/web/app/(org)/dashboard/caps

apps/web/app/(org)/dashboard/caps/Caps.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ export const Caps = ({
7777

7878
const anyCapSelected = selectedCaps.length > 0;
7979

80-
const analyticsQuery = useVideosAnalyticsQuery(data.map((video) => video.id));
80+
const analyticsQuery = useVideosAnalyticsQuery(
81+
data.map((video) => video.id),
82+
dubApiKeyEnabled,
83+
);
8184
const analytics = analyticsQuery.data || {};
8285

8386
useEffect(() => {

0 commit comments

Comments
 (0)