diff --git a/frontend/pages/dashboard/[dashboardId].js b/frontend/pages/dashboard/[dashboardId].js index fa006bd3..56141b13 100644 --- a/frontend/pages/dashboard/[dashboardId].js +++ b/frontend/pages/dashboard/[dashboardId].js @@ -218,6 +218,7 @@ const Analytics = () => { url={s3PresignedURLs[timeRange]} id={v4()} type={v4()} + refetchLinks={dashboardLinksCache.refetch} /> ); diff --git a/frontend/src/components/SubscriptionReport.js b/frontend/src/components/SubscriptionReport.js index f9a27af5..1ba35921 100644 --- a/frontend/src/components/SubscriptionReport.js +++ b/frontend/src/components/SubscriptionReport.js @@ -12,12 +12,13 @@ timeMap[HOUR_KEY] = "hour"; timeMap[DAY_KEY] = "day"; timeMap[WEEK_KEY] = "week"; -const SubscriptionReport = ({ timeRange, url, id, type }) => { +const SubscriptionReport = ({ timeRange, url, id, type, refetchLinks }) => { const { data, isLoading } = usePresignedURL({ url: url, isEnabled: true, id: id, type: type, + requestNewURLCallback: refetchLinks, }); const plotMinW = "500px"; if (!data || isLoading) return ;