mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix: empty indexer name on setup (#48)
This commit is contained in:
parent
9b4ea21885
commit
709599104b
1 changed files with 2 additions and 3 deletions
|
@ -79,9 +79,6 @@ export function IndexerAddForm({ isOpen, toggle }: AddProps) {
|
|||
channels: channels,
|
||||
}
|
||||
|
||||
// console.log("network: ", network);
|
||||
// console.log("formData: ", formData);
|
||||
|
||||
mutation.mutate(formData, {
|
||||
onSuccess: (data) => {
|
||||
// create irc
|
||||
|
@ -176,6 +173,7 @@ export function IndexerAddForm({ isOpen, toggle }: AddProps) {
|
|||
initialValues={{
|
||||
enabled: true,
|
||||
identifier: "",
|
||||
name: "",
|
||||
irc: {},
|
||||
settings: {},
|
||||
}}
|
||||
|
@ -229,6 +227,7 @@ export function IndexerAddForm({ isOpen, toggle }: AddProps) {
|
|||
placeholder="Choose an indexer"
|
||||
value={field?.value && field.value.value}
|
||||
onChange={(option: any) => {
|
||||
setFieldValue("name", option?.label ?? "")
|
||||
setFieldValue(field.name, option?.value ?? "")
|
||||
}}
|
||||
options={data && data.sort((a, b): any => a.name.localeCompare(b.name)).map(v => ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue