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

@ -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: { watch: {
columns: { columns: {
handler() { handler() {
this.internalColumns = clonedeep(this.columns) this.internalColumns = clonedeep(this.columns)
this.onStructureChange() this.onStructureChange()
}, },
deep: true, deep: true
}, },
data() { data() {
this.$nextTick(() => { this.$nextTick(() => {
this.handleScroll() this.handleScroll()
}) })
},
},
computed: {
formData(){
return this.data.sort((a, b) => new Date(b.created_at) - new Date(a.created_at));
} }
}, },