@@ -236,10 +236,10 @@ export async function clientLoader({ params }: LoaderFunctionArgs) {
236236 const { project } = getProjectSelector ( params )
237237 await Promise . all ( [
238238 // fetch both project and silo images
239- queryClient . prefetchQuery ( q ( api . imageList , { query : { project } } ) ) ,
240- queryClient . prefetchQuery ( q ( api . imageList , { } ) ) ,
239+ queryClient . prefetchQuery ( q ( api . imageList , { query : { project, limit : ALL_ISH } } ) ) ,
240+ queryClient . prefetchQuery ( q ( api . imageList , { query : { limit : ALL_ISH } } ) ) ,
241241 queryClient . prefetchQuery ( q ( api . diskList , { query : { project, limit : ALL_ISH } } ) ) ,
242- queryClient . prefetchQuery ( q ( api . currentUserSshKeyList , { } ) ) ,
242+ queryClient . prefetchQuery ( q ( api . currentUserSshKeyList , { query : { limit : ALL_ISH } } ) ) ,
243243 queryClient . prefetchQuery ( q ( api . ipPoolList , { query : { limit : ALL_ISH } } ) ) ,
244244 queryClient . prefetchQuery (
245245 q ( api . floatingIpList , { query : { project, limit : ALL_ISH } } )
@@ -378,9 +378,11 @@ export default function CreateInstanceForm() {
378378 } ,
379379 } )
380380
381- const siloImages = usePrefetchedQuery ( q ( api . imageList , { } ) ) . data . items
382- const projectImages = usePrefetchedQuery ( q ( api . imageList , { query : { project } } ) ) . data
383- . items
381+ const siloImages = usePrefetchedQuery ( q ( api . imageList , { query : { limit : ALL_ISH } } ) )
382+ . data . items
383+ const projectImages = usePrefetchedQuery (
384+ q ( api . imageList , { query : { project, limit : ALL_ISH } } )
385+ ) . data . items
384386 const allImages = [ ...siloImages , ...projectImages ]
385387
386388 const defaultImage = allImages [ 0 ]
@@ -390,7 +392,9 @@ export default function CreateInstanceForm() {
390392 ) . data . items
391393 const disks = useMemo ( ( ) => toComboboxItems ( allDisks . filter ( diskCan . attach ) ) , [ allDisks ] )
392394
393- const { data : sshKeys } = usePrefetchedQuery ( q ( api . currentUserSshKeyList , { } ) )
395+ const { data : sshKeys } = usePrefetchedQuery (
396+ q ( api . currentUserSshKeyList , { query : { limit : ALL_ISH } } )
397+ )
394398 const allKeys = useMemo ( ( ) => sshKeys . items . map ( ( key ) => key . id ) , [ sshKeys ] )
395399
396400 // ipPoolList fetches the pools linked to the current silo
0 commit comments