From e64892f2cdd6e908cbfdbbbc1e349153115be1f4 Mon Sep 17 00:00:00 2001 From: Simon Malesys <simon.malesys@pasteur.fr> Date: Thu, 18 Jan 2024 10:54:00 +0100 Subject: [PATCH] Don't fetch pehnotypes if ancestry already selected --- client/pages/gwas.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/client/pages/gwas.vue b/client/pages/gwas.vue index 942a6aa7..c77ac552 100644 --- a/client/pages/gwas.vue +++ b/client/pages/gwas.vue @@ -91,6 +91,7 @@ export default { }, methods: { selectAncestry(initTableName) { + if (this.selectedInitTable === initTableName) return this.selectedInitTable = initTableName this.$axios.$post('/phenotypes', { initTableName }) .then(phenotypes => { -- GitLab