We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bc754d commit dffc673Copy full SHA for dffc673
static/app/views/settings/projectDataForwarding/index.tsx
@@ -1,4 +1,4 @@
1
-import {Fragment} from 'react';
+import {Fragment, useState} from 'react';
2
3
import {hasEveryAccess} from 'sentry/components/acl/access';
4
import Feature from 'sentry/components/acl/feature';
@@ -33,7 +33,7 @@ type DataForwardingStatsProps = {
33
};
34
35
function DataForwardingStats({organization, project}: DataForwardingStatsProps) {
36
- const until = Math.floor(Date.now() / 1000);
+ const [until] = useState(() => Math.floor(Date.now() / 1000));
37
const since = until - 3600 * 24 * 30;
38
const options = {
39
query: {
0 commit comments