Просмотр исходного кода

Deleted eslint err fix and included dep. arr

Steven Fukase 5 лет назад
Родитель
Сommit
4d26c8a0c9

+ 0 - 1
.eslintrc.js

@@ -33,6 +33,5 @@ module.exports = {
     ],
     // eslint-plugin-import rules
     'import/no-unresolved': [2, { ignore: ['^@'] }], // ignore @alias/..., @commons/..., ...
-    "react-hooks/exhaustive-deps": 'off', // useEffect() second argument error fix
   },
 };

+ 1 - 1
src/client/js/components/Admin/SlackIntegration/CustomBotNonProxySettings.jsx

@@ -31,7 +31,7 @@ const CustomBotNonProxySettings = (props) => {
     }
     fetchData();
 
-  }, []);
+  }, [appContainer.apiv3]);
 
   async function updateHandler() {
     try {