From ced40e5182a5d4a65751f1378069ebb5dbeb1501 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 27 Dec 2024 21:59:05 +0530 Subject: [PATCH] fix: removed unnessary code --- frontend/src/stores/settings.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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,