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:
parent
19aa0d949a
commit
0b439c4429
@ -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"
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user