fix lint error (#431)
This commit is contained in:
parent
530f05d228
commit
4b9db042ed
|
|
@ -26,10 +26,10 @@ class CustomFieldValidationRule implements Rule
|
|||
public function passes($attribute, $value)
|
||||
{
|
||||
if (!($this->validation['error_conditions']['conditions'] ?? null) || is_null(
|
||||
$this->validation['error_conditions']['conditions'] ?? null
|
||||
)) {
|
||||
return true;
|
||||
}
|
||||
$this->validation['error_conditions']['conditions'] ?? null
|
||||
)) {
|
||||
return true;
|
||||
}
|
||||
return FormLogicConditionChecker::conditionsMet(
|
||||
$this->validation['error_conditions']['conditions'],
|
||||
$this->formData
|
||||
|
|
|
|||
|
|
@ -209,24 +209,24 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
formData() {
|
||||
return [...this.data].sort((a, b) => new Date(b.created_at) - new Date(a.created_at))
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
columns: {
|
||||
handler() {
|
||||
this.internalColumns = clonedeep(this.columns)
|
||||
this.onStructureChange()
|
||||
},
|
||||
deep: true,
|
||||
deep: true
|
||||
},
|
||||
data() {
|
||||
this.$nextTick(() => {
|
||||
this.handleScroll()
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
computed: {
|
||||
formData(){
|
||||
return this.data.sort((a, b) => new Date(b.created_at) - new Date(a.created_at));
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue