Merge pull request #617 from kingxjs/main

Available models could not be populated when adding a new channel
This commit is contained in:
Calcium-Ion
2024-12-14 21:31:05 +08:00
committed by GitHub

View File

@@ -222,7 +222,7 @@ const EditChannel = (props) => {
'Authorization': `Bearer ${key}` 'Authorization': `Bearer ${key}`
} }
}); });
if (res.data && res.data?.success) { if (res.data) {
models.push(...res.data.data.map((model) => model.id)); models.push(...res.data.data.map((model) => model.id));
} else { } else {
err = true; err = true;