فهرست منبع

Deleted eslint err fix and included dep. arr

Steven Fukase 5 سال پیش
والد
کامیت
4d26c8a0c9
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 0 1
      .eslintrc.js
  2. 1 1
      src/client/js/components/Admin/SlackIntegration/CustomBotNonProxySettings.jsx

+ 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 {