Bugfix: reloadDomainList() failed due to wrong recode of underscore.js map() to Object.entries()

This commit is contained in:
djmaze 2020-07-30 12:02:43 +02:00
parent ea48f5060b
commit e42c94d471

View file

@ -39,7 +39,7 @@ class AdminApp extends AbstractApp {
DomainStore.domains.loading(false);
if (StorageResultType.Success === result && data && data.Result) {
DomainStore.domains(
Object.entries(data.Result).map(([enabled, alias], name) => ({
Object.entries(data.Result).map(([name, [enabled, alias]]) => ({
name: name,
disabled: ko.observable(!enabled),
alias: alias,