Fix coding standards for typescript-eslint 8

This commit is contained in:
Alejandro Celaya
2024-08-07 12:23:03 +02:00
parent 81ea262999
commit a8258ff2cc
16 changed files with 48 additions and 24 deletions

View File

@@ -58,8 +58,12 @@ const ImportServersBtn: FCWithDeps<ImportServersBtnConnectProps, ImportServersBt
const dupServers = newServers.filter((server) => serversInclude(existingServers, server));
const hasDuplicatedServers = !!dupServers.length;
!hasDuplicatedServers ? create(newServers) : setDuplicatedServers(dupServers);
hasDuplicatedServers && showModal();
if (!hasDuplicatedServers) {
create(newServers);
} else {
setDuplicatedServers(dupServers);
showModal();
}
})
.then(() => {
// Reset input after processing file