2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +00:00

fix: CommonForm error

- dont use computed fields
This commit is contained in:
18alantom 2023-04-20 13:27:07 +05:30
parent 19aa0d949a
commit 0b439c4429
2 changed files with 2 additions and 4 deletions

View File

@ -143,7 +143,6 @@
"fieldname": "makeAutoPayment",
"label": "Make Payment On Submit",
"fieldtype": "Check",
"computed": true,
"default": false,
"readOnly": false,
"tab": "Settings"

View File

@ -357,9 +357,8 @@ export default defineComponent({
const group = this.groupedFields.get(this.activeTab);
if (!group) {
throw new ValidationError(
`Tab group ${this.activeTab} has no value set`
);
const tab = [...this.groupedFields.keys()][0];
return this.groupedFields.get(tab) ?? new Map();
}
return group;