mirror of
https://github.com/idanoo/autobrr
synced 2025-07-24 17:29:12 +00:00
fix: no irc network created when adding a new indexer (#177)
This commit is contained in:
parent
aa196d8104
commit
8bf43dc1e0
6 changed files with 56 additions and 27 deletions
|
@ -148,7 +148,7 @@ export function IndexerAddForm({ isOpen, toggle }: AddProps) {
|
|||
})
|
||||
|
||||
const ircMutation = useMutation(
|
||||
(network: IrcNetwork) => APIClient.irc.createNetwork(network)
|
||||
(network: IrcNetworkCreate) => APIClient.irc.createNetwork(network)
|
||||
);
|
||||
|
||||
const onSubmit = (formData: any) => {
|
||||
|
@ -170,13 +170,11 @@ export function IndexerAddForm({ isOpen, toggle }: AddProps) {
|
|||
});
|
||||
}
|
||||
|
||||
const network: IrcNetwork = {
|
||||
id: 0,
|
||||
const network: IrcNetworkCreate = {
|
||||
name: ind.irc.network,
|
||||
pass: "",
|
||||
enabled: false,
|
||||
connected: false,
|
||||
connected_since: 0,
|
||||
server: ind.irc.server,
|
||||
port: ind.irc.port,
|
||||
tls: ind.irc.tls,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue