From cc2d474fdae00f7a76ff88d30f48317858d74401 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Tue, 20 Aug 2024 17:12:11 -0700 Subject: [PATCH] IO-2887 Null out BillData if returnfrombill is not available Signed-off-by: Allan Carr --- .../parts-order-list-table-drawer.component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/parts-order-list-table/parts-order-list-table-drawer.component.jsx b/client/src/components/parts-order-list-table/parts-order-list-table-drawer.component.jsx index 5dde61a72..168f7687e 100644 --- a/client/src/components/parts-order-list-table/parts-order-list-table-drawer.component.jsx +++ b/client/src/components/parts-order-list-table/parts-order-list-table-drawer.component.jsx @@ -103,7 +103,7 @@ export function PartsOrderListTableDrawerComponent({ } catch (error) { console.error("Error fetching bill data:", error); } - } + } else setBillData(null); }; fetchData(); }, [selectedPartsOrderRecord, billQuery]);