From ad3297403f4de320a347330a13a6fda5cbcb4af1 Mon Sep 17 00:00:00 2001 From: River Holstege Date: Fri, 22 Sep 2023 16:46:13 -0700 Subject: [PATCH] fix error if searching system id returns nothing --- .../src/components/Equipment/EquipmentManagedSystemSearchId.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Keas.Mvc/ClientApp/src/components/Equipment/EquipmentManagedSystemSearchId.tsx b/Keas.Mvc/ClientApp/src/components/Equipment/EquipmentManagedSystemSearchId.tsx index 2ef9e80f1..e3c81ab3c 100644 --- a/Keas.Mvc/ClientApp/src/components/Equipment/EquipmentManagedSystemSearchId.tsx +++ b/Keas.Mvc/ClientApp/src/components/Equipment/EquipmentManagedSystemSearchId.tsx @@ -118,7 +118,7 @@ const EquipmentManagedSystemSearchId = (props: IProps) => { // if no error occured except Not Found if (isValidSearch) { // If listOfComputers' length is not 0 then display the computers, else display an error message - if (listOfComputers.length > 0) { + if (!!listOfComputers && listOfComputers.length > 0) { return (