diff --git a/frontend/src/stores/settings.js b/frontend/src/stores/settings.js index 55675ae2..551a87aa 100644 --- a/frontend/src/stores/settings.js +++ b/frontend/src/stores/settings.js @@ -5,7 +5,7 @@ const settings = ref({}) const brand = reactive({}) export function getSettings() { - const _settings = createDocumentResource({ + createDocumentResource({ doctype: 'FCRM Settings', name: 'FCRM Settings', onSuccess: (data) => { @@ -17,10 +17,6 @@ export function getSettings() { }, }) - if (!settings.value?.length) { - _settings.fetch() - } - return { settings, brand,