Changeset 0.37.14 (#226)
Co-authored-by: gobha <jasafpro@gmail.com> Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
@@ -227,7 +227,7 @@
|
||||
let url = '/api/v1/channels?page=1&per_page=12';
|
||||
if (typeFilter) url += '&type=' + encodeURIComponent(typeFilter);
|
||||
const resp = await sw.api.get(url);
|
||||
const channels = resp.data || resp || [];
|
||||
const channels = resp || [];
|
||||
|
||||
container.innerHTML = '';
|
||||
if (!channels.length) {
|
||||
@@ -385,7 +385,7 @@
|
||||
async function _loadAdminCards(container) {
|
||||
try {
|
||||
const resp = await sw.api.get('/api/v1/admin/packages');
|
||||
const packages = resp.data || resp || [];
|
||||
const packages = resp || [];
|
||||
|
||||
container.innerHTML = '';
|
||||
packages.forEach(function (pkg) {
|
||||
|
||||
Reference in New Issue
Block a user