2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00

Fetching fresh document and avoiding cached one to prevent error

This commit is contained in:
Piyush Singhania 2022-01-11 18:11:26 +05:30 committed by Alan
parent 55832f19ad
commit 721bfab5b8

View File

@ -19,7 +19,9 @@ export default {
}; };
}, },
async mounted() { async mounted() {
this.doc = await frappe.getSingle('AccountingSettings'); this.doc = await frappe.getDoc('AccountingSettings', 'AccountingSettings', {
skipCacheDocument: true
});
}, },
computed: { computed: {
fields() { fields() {