IO-2887 Null out BillData if returnfrombill is not available

Signed-off-by: Allan Carr <allan.carr@thinkimex.com>
This commit is contained in:
Allan Carr
2024-08-20 17:12:11 -07:00
parent 680a66b156
commit cc2d474fda

View File

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