fix: removed unnessary code
This commit is contained in:
parent
7e949ea78b
commit
ced40e5182
@ -5,7 +5,7 @@ const settings = ref({})
|
|||||||
const brand = reactive({})
|
const brand = reactive({})
|
||||||
|
|
||||||
export function getSettings() {
|
export function getSettings() {
|
||||||
const _settings = createDocumentResource({
|
createDocumentResource({
|
||||||
doctype: 'FCRM Settings',
|
doctype: 'FCRM Settings',
|
||||||
name: 'FCRM Settings',
|
name: 'FCRM Settings',
|
||||||
onSuccess: (data) => {
|
onSuccess: (data) => {
|
||||||
@ -17,10 +17,6 @@ export function getSettings() {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!settings.value?.length) {
|
|
||||||
_settings.fetch()
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
settings,
|
settings,
|
||||||
brand,
|
brand,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user