Enable react-hooks/exhaustive-deps linting rule

This commit is contained in:
Alejandro Celaya
2023-09-02 19:48:23 +02:00
parent 973f3e3c8b
commit a23d441dd3
3 changed files with 3 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ export function withSelectedServer<T = {}>(WrappedComponent: FC<WithSelectedServ
useEffect(() => {
params.serverId && selectServer(params.serverId);
}, [params.serverId]);
}, [params.serverId, selectServer]);
if (!selectedServer) {
return (