2
0
mirror of https://github.com/frappe/books.git synced 2025-01-03 07:12:21 +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", "fieldname": "makeAutoPayment",
"label": "Make Payment On Submit", "label": "Make Payment On Submit",
"fieldtype": "Check", "fieldtype": "Check",
"computed": true,
"default": false, "default": false,
"readOnly": false, "readOnly": false,
"tab": "Settings" "tab": "Settings"

View File

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