From 4bfccba4c06c15e6053f6aeeb6531c4e12e479c1 Mon Sep 17 00:00:00 2001 From: Jai A Date: Sun, 14 Jan 2024 09:02:27 -0500 Subject: [PATCH] remove search from home --- pages/index.vue | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 3e40a63a3..082161d9b 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -520,19 +520,9 @@ const sortType = ref('relevance') const auth = await useAuth() const tags = useTags() -const [{ data: searchProjects, refresh: updateSearchProjects }, { data: notifications }] = - await Promise.all([ - useAsyncData( - 'demoSearchProjects', - () => useBaseFetch(`search?limit=3&query=${searchQuery.value}&index=${sortType.value}`), - { - transform: (result) => result.hits, - } - ), - useAsyncData('updatedProjects', () => useBaseFetch(`search?limit=3&query=&index=updated`), { - transform: (result) => result.hits, - }), - ]) +const searchProjects = ref([]) +const notifications = ref([]) +const updateSearchProjects = async () => {} const val = Math.ceil(homepageProjects.length / 3) const rows = shallowRef([