Procházet zdrojové kódy

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

akl7777777 před 1 rokem
rodič
revize
6f1bef66a7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      web/src/pages/Channel/EditChannel.js

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

@@ -209,7 +209,7 @@ const EditChannel = (props) => {
             }
             }
           })
           })
           if (res.data && res.data?.success) {
           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 {
           } else {
             err = true
             err = true
           }
           }