From 318a4978864263ee2edd77dac7b180e6d93d95c1 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 13 Nov 2023 22:32:35 +0530 Subject: [PATCH] revert: removed storage cache from link field --- frontend/src/components/Controls/Link.vue | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/frontend/src/components/Controls/Link.vue b/frontend/src/components/Controls/Link.vue index f509b681..830f36ac 100644 --- a/frontend/src/components/Controls/Link.vue +++ b/frontend/src/components/Controls/Link.vue @@ -34,7 +34,7 @@ import { call } from 'frappe-ui' import Autocomplete from '@/components/frappe-ui/Autocomplete.vue' import { useAttrs, computed, ref } from 'vue' -import { computedAsync, watchDebounced, useStorage } from '@vueuse/core' +import { computedAsync, watchDebounced } from '@vueuse/core' const props = defineProps({ doctype: { @@ -69,12 +69,6 @@ watchDebounced( ) const options = computedAsync(async () => { - let cachedOptions = localStorage.getItem(props.doctype + '-' + text.value) - - if (cachedOptions) { - return JSON.parse(cachedOptions) - } - let options = await call('frappe.desk.search.search_link', { txt: text.value, doctype: props.doctype, @@ -85,9 +79,6 @@ const options = computedAsync(async () => { value: option.value, } }) - - useStorage(props.doctype + '-' + text.value, options) - return options })