CEC-1965 Supplier update and approval (#162)
* CEC-1965 Supplier update and approval Fix calling connectedcars for no VINs Search sets table page to 0 * PR comments
This commit is contained in:
@@ -36,6 +36,7 @@ export const VehicleProvider = ({ children }) => {
|
||||
|
||||
const addConnections = async (cars, token) => {
|
||||
try {
|
||||
if (cars.length === 0) return;
|
||||
const vins = cars.map((car) => car.vin);
|
||||
const result = await api.getConnections(vins, token);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user