Reset record errors when determining record page layout
This commit is contained in:
parent
f3108cfb51
commit
8d3b2c8a8a
@ -432,6 +432,10 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
resetErrors () {
|
||||
this.errors = new validator.Validated()
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns errors, filtered for a specific field
|
||||
* @param name
|
||||
|
||||
@ -543,6 +543,7 @@ export default {
|
||||
async determineLayout (pageLayoutID, variables = {}, redirectOnFail = true) {
|
||||
// Clear stored records so they can be refetched with latest values
|
||||
this.clearRecordSet()
|
||||
this.resetErrors()
|
||||
let expressions = {}
|
||||
|
||||
// Only evaluate if one of the layouts has an expressions variable
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user