mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
fix: list ordering
- error message overlap spacing
This commit is contained in:
parent
e801878a92
commit
a4500ec231
@ -49,7 +49,9 @@
|
||||
class="grid items-center"
|
||||
:class="{
|
||||
'border-b': !noBorder,
|
||||
'h-12': !['AttachImage', 'Text'].includes(df.fieldtype),
|
||||
'h-12':
|
||||
!['AttachImage', 'Text'].includes(df.fieldtype) &&
|
||||
!errors[df.fieldname],
|
||||
}"
|
||||
:key="`${df.fieldname}-regular`"
|
||||
:style="style"
|
||||
|
@ -174,10 +174,14 @@ export default defineComponent({
|
||||
filters = { ...this.filters };
|
||||
}
|
||||
|
||||
const orderBy = !!fyo.getField(this.schemaName, 'date')
|
||||
? 'date'
|
||||
: 'created';
|
||||
|
||||
this.data = await fyo.db.getAll(this.schemaName, {
|
||||
fields: ['*'],
|
||||
filters,
|
||||
orderBy: 'modified',
|
||||
orderBy,
|
||||
});
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user