This commit is contained in:
@@ -706,20 +706,8 @@ export default {
|
||||
//Might be an error, check if collectionName is in error collection
|
||||
//this is what we're dealing with
|
||||
// { "code": "2200", "details": [ { "message": "LT:PurchaseOrderReceiptItemQuantityReceivedErrorInvalid", "target": "Items[0].QuantityReceived", "error": "2203" } ], "message": "ErrorAPI2200" }
|
||||
//and this: target: "Items[3].scheduledUsers[1].EstimatedQuantity"
|
||||
|
||||
// let rowErrorTargetStart = `${collectionName}[${rowIndex}].`.toLowerCase();
|
||||
// console.log("childRowHasError", {
|
||||
// rowErrorTargetStart: rowErrorTargetStart,
|
||||
// collectionName: collectionName,
|
||||
// rowIndex: rowIndex
|
||||
// });
|
||||
|
||||
// {
|
||||
// "rowErrorTargetStart": "scheduledusers[1].",
|
||||
// "collectionName": "ScheduledUsers",
|
||||
// "rowIndex": 1
|
||||
// }
|
||||
//or multilayered like this: target: "Items[3].scheduledUsers[1].EstimatedQuantity"
|
||||
//so set "path" accordingly easy peasy, such error, so wow
|
||||
|
||||
//filter in items that start with the row collection name and index provided
|
||||
return vm.formState.serverError.details.some(function(o) {
|
||||
|
||||
Reference in New Issue
Block a user