From a6198e60f36b43162e62c6069636ebd9a58d5f6d Mon Sep 17 00:00:00 2001
From: Remi  PLANEL <rplanel@pasteur.fr>
Date: Fri, 22 Dec 2023 15:40:44 +0100
Subject: [PATCH] update

---
 components/content/RefseqDb.vue | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/content/RefseqDb.vue b/components/content/RefseqDb.vue
index 38260b1f..d7d55b2f 100644
--- a/components/content/RefseqDb.vue
+++ b/components/content/RefseqDb.vue
@@ -69,7 +69,7 @@ const computedWidth = computed(() => {
     return Math.max(currentWidth, 550);
 });
 
-const allHits = ref([])
+const allHits: Ref<Record<string, any> | undefined> = ref(undefined)
 onMounted(async () => {
     const params = {
         facets: ["*"],
@@ -80,7 +80,7 @@ onMounted(async () => {
     await getAllHits({ index: "refseq", params, query: "" })
 })
 
-async function getAllHits(params) {
+async function getAllHits(params: { index: string, params: Record<string, any>, query: string }) {
     if (params.index === 'refseq') {
         const { data, error } = await useAsyncMeiliSearch(params)
         allHits.value = data.value
@@ -191,8 +191,8 @@ function namesToAccessionChips(names: string[]) {
         }
     })
 }
-const systemPanel: Ref<number> = ref(["table"])
-const layoutPlot: Ref<string[]> = ref("grid")
+const systemPanel: Ref<string[]> = ref([])
+const layoutPlot: Ref<string> = ref("grid")
 
 const binPlotOptions = ref({
     marginLeft: 150,
-- 
GitLab