File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,9 +102,7 @@ const vmApi = oneApi.injectEndpoints({
102102
103103 getVmsPaginated : builder . query ( {
104104 /**
105- * Fetches information for all or part of
106- * the VMs in the pool by running concurrent jobs
107- * and collecting the results in the backend. (FASTER)
105+ * Fetches information for all or part of the VMs in the pool by running concurrent jobs and collecting the results in the backend. (FASTER).
108106 *
109107 * @param {object } params - Request parameters
110108 * @param {0|1 } params.extended
Original file line number Diff line number Diff line change @@ -269,7 +269,9 @@ const fetchPaginatedPool = async (
269269 parameters : fParams ,
270270 } )
271271
272- return data || [ ]
272+ const ensureData = data && ! Array . isArray ( data ) ? [ data ] : data
273+
274+ return ensureData || [ ]
273275 }
274276
275277 const runBatches = async ( ) => {
You can’t perform that action at this time.
0 commit comments