Skip to content
Snippets Groups Projects
Commit 9295ea7c authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Add onMount to get facetDitribution

parent 30c43f88
No related branches found
No related tags found
2 merge requests!203Foldseek pages,!186Refactor facet autocomplete
Pipeline #120025 passed with stages
in 6 minutes and 25 seconds
......@@ -36,20 +36,20 @@ await callOnce(async () => {
facetDistribution.value = toValue(data)?.facetDistribution
})
// onMounted(async () => {
// console.log("dans le mounted refseq")
// const { data } = await useAsyncMeiliSearch({
// index: toValue(dbName), query: "", params: {
// facets: ["*"],
// filter: [],
// page: 1,
// hitsPerPage: 25,
// }
// })
// console.log(toValue(data))
// facetDistribution.value = toValue(data)?.facetDistribution
// })
onMounted(async () => {
console.log("dans le mounted refseq")
const { data } = await useAsyncMeiliSearch({
index: toValue(dbName), query: "", params: {
facets: ["*"],
filter: [],
page: 1,
hitsPerPage: 25,
}
})
console.log(toValue(data))
facetDistribution.value = toValue(data)?.facetDistribution
})
const { serialize } = useSerialize()
const { rasterize } = useRasterize()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment