2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 09:24:04 +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="grid items-center"
:class="{ :class="{
'border-b': !noBorder, 'border-b': !noBorder,
'h-12': !['AttachImage', 'Text'].includes(df.fieldtype), 'h-12':
!['AttachImage', 'Text'].includes(df.fieldtype) &&
!errors[df.fieldname],
}" }"
:key="`${df.fieldname}-regular`" :key="`${df.fieldname}-regular`"
:style="style" :style="style"

View File

@ -174,10 +174,14 @@ export default defineComponent({
filters = { ...this.filters }; filters = { ...this.filters };
} }
const orderBy = !!fyo.getField(this.schemaName, 'date')
? 'date'
: 'created';
this.data = await fyo.db.getAll(this.schemaName, { this.data = await fyo.db.getAll(this.schemaName, {
fields: ['*'], fields: ['*'],
filters, filters,
orderBy: 'modified', orderBy,
}); });
}, },
}, },