diff --git a/components/content/RefseqDb.vue b/components/content/RefseqDb.vue index 38260b1fb067278cddf555a49412b847f18253ea..d7d55b2f3b6392fc3692479bef369c635d7e2b0e 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,