From fdf33270cac0361f9abe38c1cc603aefd3a780c8 Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Mon, 23 Oct 2023 13:11:04 +0300
Subject: [PATCH] fix firefox selection

---
 wax-table-service/src/components/TableDropDown.js | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/wax-table-service/src/components/TableDropDown.js b/wax-table-service/src/components/TableDropDown.js
index 9a7f136cb..088f54714 100644
--- a/wax-table-service/src/components/TableDropDown.js
+++ b/wax-table-service/src/components/TableDropDown.js
@@ -65,9 +65,8 @@ const StyledIcon = styled(Icon)`
 `;
 
 const TableDropDown = ({ item }) => {
+  const { t, i18n } = useTranslation();
   const Translation = ({ label, defaultTrans }) => {
-    const { t, i18n } = useTranslation();
-
     return (
       <>{!isEmpty(i18n) && i18n.exists(label) ? t(label) : defaultTrans}</>
     );
@@ -269,12 +268,10 @@ const TableDropDown = ({ item }) => {
           type="button"
         >
           <span>
-            {' '}
-            <Translation
-              defaultTrans="Table Options"
-              label="Wax.Tables.Table Options"
-            />
-          </span>{' '}
+            {!isEmpty(i18n) && i18n.exists('Wax.Tables.Table Options')
+              ? t('Wax.Tables.Table Options')
+              : 'Table Options'}
+          </span>
           <StyledIcon name="expand" />
         </DropDownButton>
         <DropDownMenu
-- 
GitLab