Commit b780bc1
fix: Prevent unnecessary API calls in useCodeReviewOverviewSection when feature flag is disabled
Add enabled parameter to useCodeReviewOverviewSection hook and pass it through to useInfiniteQuery. This prevents the hook from making API calls to fetch all organization repositories when the seer-overview feature flag is disabled.
Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>1 parent 714ffe8 commit b780bc1
File tree
2 files changed
+3
-2
lines changed- static
- app/views/settings/seer/overview
- gsApp/views/seerAutomation
2 files changed
+3
-2
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments