File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
static/app/views/automations Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export default function AutomationsList() {
28
28
29
29
const location = useLocation ( ) ;
30
30
const navigate = useNavigate ( ) ;
31
- const { selection} = usePageFilters ( ) ;
31
+ const { selection, isReady } = usePageFilters ( ) ;
32
32
33
33
const {
34
34
sort : sorts ,
@@ -45,17 +45,20 @@ export default function AutomationsList() {
45
45
46
46
const {
47
47
data : automations ,
48
- isPending ,
48
+ isLoading ,
49
49
isError,
50
50
isSuccess,
51
51
getResponseHeader,
52
- } = useAutomationsQuery ( {
53
- cursor,
54
- query,
55
- sortBy : sort ? `${ sort ?. kind === 'asc' ? '' : '-' } ${ sort ?. field } ` : undefined ,
56
- projects : selection . projects ,
57
- limit : AUTOMATION_LIST_PAGE_LIMIT ,
58
- } ) ;
52
+ } = useAutomationsQuery (
53
+ {
54
+ cursor,
55
+ query,
56
+ sortBy : sort ? `${ sort ?. kind === 'asc' ? '' : '-' } ${ sort ?. field } ` : undefined ,
57
+ projects : selection . projects ,
58
+ limit : AUTOMATION_LIST_PAGE_LIMIT ,
59
+ } ,
60
+ { enabled : isReady }
61
+ ) ;
59
62
60
63
const hits = getResponseHeader ?.( 'X-Hits' ) || '' ;
61
64
const hitsInt = hits ? parseInt ( hits , 10 ) || 0 : 0 ;
@@ -81,7 +84,7 @@ export default function AutomationsList() {
81
84
< div >
82
85
< AutomationListTable
83
86
automations = { automations ?? [ ] }
84
- isPending = { isPending }
87
+ isPending = { isLoading }
85
88
isError = { isError }
86
89
isSuccess = { isSuccess }
87
90
sort = { sort }
You can’t perform that action at this time.
0 commit comments