mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-18 12:48:50 +08:00
Bugfix: reloadDomainList() failed due to wrong recode of underscore.js map() to Object.entries()
This commit is contained in:
parent
ea48f5060b
commit
e42c94d471
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class AdminApp extends AbstractApp {
|
||||||
DomainStore.domains.loading(false);
|
DomainStore.domains.loading(false);
|
||||||
if (StorageResultType.Success === result && data && data.Result) {
|
if (StorageResultType.Success === result && data && data.Result) {
|
||||||
DomainStore.domains(
|
DomainStore.domains(
|
||||||
Object.entries(data.Result).map(([enabled, alias], name) => ({
|
Object.entries(data.Result).map(([name, [enabled, alias]]) => ({
|
||||||
name: name,
|
name: name,
|
||||||
disabled: ko.observable(!enabled),
|
disabled: ko.observable(!enabled),
|
||||||
alias: alias,
|
alias: alias,
|
||||||
|
|
Loading…
Reference in a new issue