fix lint error (#431)

This commit is contained in:
Chirag Chhatrala 2024-05-30 09:34:55 +05:30 committed by GitHub
parent 530f05d228
commit 4b9db042ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 11 deletions

View File

@ -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

View File

@ -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));
}
},