fix: removed unnessary code
This commit is contained in:
parent
7e949ea78b
commit
ced40e5182
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user