Skip to content

Commit 7af2563

Browse files
committed
fix enabled state
1 parent 878e992 commit 7af2563

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

static/app/views/issueDetails/streamline/eventGraph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,14 +269,14 @@ export function EventGraph({
269269
staleTime: 0,
270270
}
271271
);
272+
272273
const {data: flags} = useIntersectionFlags({
273274
event,
274275
query: {
275276
start: eventView.start,
276277
end: eventView.end,
277278
period: eventView.statsPeriod,
278279
},
279-
enabled: showReleasesAs === 'line',
280280
});
281281

282282
const handleReleaseLineClick = useCallback(

static/app/views/issueDetails/streamline/hooks/featureFlags/useOrganizationFlagLog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function useOrganizationFlagLog({
1313
}) {
1414
// Don't make the request if start = end. The backend returns 400 but we prefer an empty response.
1515
const enabled =
16-
!query.start || !query.end || (query.start !== query.end && enabledParam);
16+
(!query.start || !query.end || query.start !== query.end) && enabledParam;
1717

1818
return useApiQuery<RawFlagData>(
1919
[`/organizations/${organization.slug}/flags/logs/`, {query}],

0 commit comments

Comments
 (0)