fix: Available models could not be populated when adding a new channel

This commit is contained in:
akl7777777 2024-06-04 20:39:28 +08:00 committed by GitHub
parent c1040afed9
commit 6f1bef66a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -209,7 +209,7 @@ const EditChannel = (props) => {
}
})
if (res.data && res.data?.success) {
models.push(...es.data.data.map((model) => model.id))
models.push(...res.data.data.map((model) => model.id))
} else {
err = true
}