From 35a3791fc60233e112ec2cd3f175ee8605d40e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bulot=20Fran=C3=A7ois?= Date: Thu, 21 Sep 2023 10:11:53 +0200 Subject: [PATCH] hide visualization menu when duplicate variables --- .../components/visualize-dropdown.jsx | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/widgets/visualize-dropdown/components/visualize-dropdown.jsx b/src/widgets/visualize-dropdown/components/visualize-dropdown.jsx index 30fbebcac..d91c11e12 100644 --- a/src/widgets/visualize-dropdown/components/visualize-dropdown.jsx +++ b/src/widgets/visualize-dropdown/components/visualize-dropdown.jsx @@ -118,18 +118,21 @@ function VisualizeDropdown({ {Dictionary.visualise} - - + {!( + allowDuplicateVariablesModal && hasQuestionnaireDuplicateVariables + ) && ( + + )}