IO-2887 Null out BillData if returnfrombill is not available
Signed-off-by: Allan Carr <allan.carr@thinkimex.com>
This commit is contained in:
@@ -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]);
|
||||||
|
|||||||
Reference in New Issue
Block a user