mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 01:20:24 +03:00
Add missing useCallback wrapping inside ImportServerBtn
This commit is contained in:
parent
a23d441dd3
commit
65d3a19530
1 changed files with 2 additions and 2 deletions
|
@ -67,10 +67,10 @@ export const ImportServersBtn = (serversImporter: ServersImporter): FC<ImportSer
|
|||
create(serversToCreate.current);
|
||||
hideModal();
|
||||
}, [create, hideModal, serversToCreate]);
|
||||
const createNonDuplicatedServers = () => {
|
||||
const createNonDuplicatedServers = useCallback(() => {
|
||||
create(serversToCreate.current.filter(complement(serversFiltering(duplicatedServers))));
|
||||
hideModal();
|
||||
};
|
||||
}, [create, duplicatedServers, hideModal]);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue