2
0
mirror of https://github.com/frappe/books.git synced 2024-11-12 16:36:27 +00:00

fix: list ordering

- error message overlap spacing
This commit is contained in:
18alantom 2022-06-09 13:06:28 +05:30 committed by Alan
parent e801878a92
commit a4500ec231
2 changed files with 8 additions and 2 deletions

View File

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

View File

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