Available models could not be populated when adding a new channel
@@ -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;