mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 09:30:31 +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);
|
create(serversToCreate.current);
|
||||||
hideModal();
|
hideModal();
|
||||||
}, [create, hideModal, serversToCreate]);
|
}, [create, hideModal, serversToCreate]);
|
||||||
const createNonDuplicatedServers = () => {
|
const createNonDuplicatedServers = useCallback(() => {
|
||||||
create(serversToCreate.current.filter(complement(serversFiltering(duplicatedServers))));
|
create(serversToCreate.current.filter(complement(serversFiltering(duplicatedServers))));
|
||||||
hideModal();
|
hideModal();
|
||||||
};
|
}, [create, duplicatedServers, hideModal]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in a new issue