Commit 5f74f7c3 by Calcium-Ion Committed by GitHub

Merge pull request #617 from kingxjs/main

Available models could not be populated when adding a new channel
parents 94ece1da 4ae37b94
......@@ -222,7 +222,7 @@ const EditChannel = (props) => {
'Authorization': `Bearer ${key}`
}
});
if (res.data && res.data?.success) {
if (res.data) {
models.push(...res.data.data.map((model) => model.id));
} else {
err = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment