Added ordering invoice as in house BOD-101
This commit is contained in:
@@ -6,14 +6,13 @@ import VendorsListComponent from "./vendors-list.component";
|
||||
|
||||
export default function VendorsListContainer({ selectedVendorState }) {
|
||||
const [selectedVendor, setSelectedVendor] = selectedVendorState;
|
||||
const { loading, error, data } = useQuery(QUERY_ALL_VENDORS, {
|
||||
fetchPolicy: "network-only"
|
||||
});
|
||||
const { loading, error, data } = useQuery(QUERY_ALL_VENDORS);
|
||||
|
||||
const handleNewVendor = () => {
|
||||
setSelectedVendor({});
|
||||
};
|
||||
|
||||
const handleOnRowClick = record => {
|
||||
const handleOnRowClick = (record) => {
|
||||
if (record) {
|
||||
setSelectedVendor(record);
|
||||
} else setSelectedVendor(null);
|
||||
|
||||
Reference in New Issue
Block a user