Merged in feature/IO-2887-Returnfrombill-Parts-Drawer (pull request #1640)

IO-2887 Null out BillData if returnfrombill is not available
This commit is contained in:
Allan Carr
2024-08-21 00:12:03 +00:00

View File

@@ -103,7 +103,7 @@ export function PartsOrderListTableDrawerComponent({
} catch (error) { } catch (error) {
console.error("Error fetching bill data:", error); console.error("Error fetching bill data:", error);
} }
} } else setBillData(null);
}; };
fetchData(); fetchData();
}, [selectedPartsOrderRecord, billQuery]); }, [selectedPartsOrderRecord, billQuery]);