diff --git a/src/servers/helpers/ImportServersBtn.tsx b/src/servers/helpers/ImportServersBtn.tsx index a2c54e4c..9856bd9e 100644 --- a/src/servers/helpers/ImportServersBtn.tsx +++ b/src/servers/helpers/ImportServersBtn.tsx @@ -67,10 +67,10 @@ export const ImportServersBtn = (serversImporter: ServersImporter): FC { + const createNonDuplicatedServers = useCallback(() => { create(serversToCreate.current.filter(complement(serversFiltering(duplicatedServers)))); hideModal(); - }; + }, [create, duplicatedServers, hideModal]); return ( <>