Added ordering invoice as in house BOD-101
This commit is contained in:
@@ -25,7 +25,7 @@ function VendorsFormContainer({ selectedVendor, refetch, bodyshop }) {
|
||||
const { loading, error, data } = useQuery(QUERY_VENDOR_BY_ID, {
|
||||
variables: { id: (selectedVendor && selectedVendor.id) || null },
|
||||
fetchPolicy: "network-only",
|
||||
skip: !selectedVendor
|
||||
skip: !!!selectedVendor
|
||||
});
|
||||
const [updateVendor] = useMutation(UPDATE_VENDOR);
|
||||
const [insertvendor] = useMutation(INSERT_NEW_VENDOR);
|
||||
|
||||
Reference in New Issue
Block a user