소스 검색

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 {