@@ -72,6 +72,7 @@ import { Slash } from '~/ui/lib/Slash'
72
72
import { Tabs } from '~/ui/lib/Tabs'
73
73
import { TextInputHint } from '~/ui/lib/TextInput'
74
74
import { TipIcon } from '~/ui/lib/TipIcon'
75
+ import { ALL_ISH } from '~/util/consts'
75
76
import { readBlobAsBase64 } from '~/util/file'
76
77
import { docLinks , links } from '~/util/links'
77
78
import { nearest10 } from '~/util/math'
@@ -161,8 +162,8 @@ CreateInstanceForm.loader = async ({ params }: LoaderFunctionArgs) => {
161
162
query : { project, limit : DISK_FETCH_LIMIT } ,
162
163
} ) ,
163
164
apiQueryClient . prefetchQuery ( 'currentUserSshKeyList' , { } ) ,
164
- apiQueryClient . prefetchQuery ( 'projectIpPoolList' , { query : { limit : 1000 } } ) ,
165
- apiQueryClient . prefetchQuery ( 'floatingIpList' , { query : { project, limit : 1000 } } ) ,
165
+ apiQueryClient . prefetchQuery ( 'projectIpPoolList' , { query : { limit : ALL_ISH } } ) ,
166
+ apiQueryClient . prefetchQuery ( 'floatingIpList' , { query : { project, limit : ALL_ISH } } ) ,
166
167
] )
167
168
return null
168
169
}
@@ -208,7 +209,7 @@ export function CreateInstanceForm() {
208
209
209
210
// projectIpPoolList fetches the pools linked to the current silo
210
211
const { data : siloPools } = usePrefetchedApiQuery ( 'projectIpPoolList' , {
211
- query : { limit : 1000 } ,
212
+ query : { limit : ALL_ISH } ,
212
213
} )
213
214
const defaultPool = useMemo (
214
215
( ) => ( siloPools ? siloPools . items . find ( ( p ) => p . isDefault ) ?. name : undefined ) ,
@@ -627,7 +628,7 @@ const AdvancedAccordion = ({
627
628
628
629
const { project } = useProjectSelector ( )
629
630
const { data : floatingIpList } = usePrefetchedApiQuery ( 'floatingIpList' , {
630
- query : { project, limit : 1000 } ,
631
+ query : { project, limit : ALL_ISH } ,
631
632
} )
632
633
633
634
// Filter out the IPs that are already attached to an instance
0 commit comments