Przeglądaj źródła

Merge pull request #617 from kingxjs/main

Available models could not be populated when adding a new channel
Calcium-Ion 1 rok temu
rodzic
commit
e2f6444b83
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      web/src/pages/Channel/EditChannel.js

+ 1 - 1
web/src/pages/Channel/EditChannel.js

@@ -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;