Skip to content

Commit

Permalink
Add isArray() check for received inventory data
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Szwajkowski <[email protected]>
  • Loading branch information
rszwajko committed Sep 8, 2023
1 parent 6f97ee5 commit e1c82b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const ProviderVirtualMachinesList: React.FC<ProviderVirtualMachinesListPr
} = useProviderInventory<ProviderVirtualMachine[]>(inventoryOptions);

const vmData: VmData[] =
!loading && !error && vms
!loading && !error && Array.isArray(vms)
? vms.map((vm) => ({
vm,
name: vm.name,
Expand Down

0 comments on commit e1c82b1

Please sign in to comment.