mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-10-20 12:44:09 +00:00
Fix some instances of react-hooks/exhaustive-deps
This commit is contained in:
@@ -23,7 +23,7 @@ export const Home = ({ servers }: HomeProps) => {
|
||||
// Try to redirect to the first server marked as auto-connect
|
||||
const autoConnectServer = serversList.find(({ autoConnect }) => autoConnect);
|
||||
autoConnectServer && navigate(`/server/${autoConnectServer.id}`);
|
||||
}, []);
|
||||
}, [serversList, navigate]);
|
||||
|
||||
return (
|
||||
<div className="home">
|
||||
|
||||
Reference in New Issue
Block a user