From bf2cbc83514d36bd4ceabd177c54d76f18918685 Mon Sep 17 00:00:00 2001
From: Remi  PLANEL <rplanel@pasteur.fr>
Date: Thu, 21 Mar 2024 15:26:40 +0100
Subject: [PATCH] use onMounted :(

---
 components/content/pdockqMatrix.vue | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/components/content/pdockqMatrix.vue b/components/content/pdockqMatrix.vue
index 15599df8..5b169462 100644
--- a/components/content/pdockqMatrix.vue
+++ b/components/content/pdockqMatrix.vue
@@ -30,6 +30,26 @@ const margin = ref<PlotMargin>({
     marginLeft: 150
 })
 
+
+onMounted(async () => {
+
+    const { data: d, error } = await useAsyncMeiliSearch({
+        index: toValue(dbName), query: "", params: {
+            facets: ["*"],
+            filter: [
+                `System='${toValue(computedSystem)}'`,
+                ...toValue(filterBase)
+            ],
+        }
+    })
+    data.value = d.value
+    if (error.value) {
+        throw createError("Error while getting structure pdocks")
+    }
+
+})
+
+
 const computedSystem = computed(() => {
     const toValPage = toValue(page)
     const toValSystem = toValue(system)
-- 
GitLab