mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +03:00
Cleanup more iError && data.Result
This commit is contained in:
parent
87bee226b4
commit
ce74b2e92f
19 changed files with 78 additions and 100 deletions
|
|
@ -9,7 +9,7 @@ DomainAdminStore.fetch = () => {
|
|||
DomainAdminStore.loading(true);
|
||||
Remote.domainList((iError, data) => {
|
||||
DomainAdminStore.loading(false);
|
||||
if (!iError && data && data.Result) {
|
||||
if (!iError) {
|
||||
DomainAdminStore(
|
||||
Object.entries(data.Result).map(([name, [enabled, alias]]) => ({
|
||||
name: name,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ PackageAdminStore.fetch = () => {
|
|||
PackageAdminStore.loading(true);
|
||||
Remote.packagesList((iError, data) => {
|
||||
PackageAdminStore.loading(false);
|
||||
if (!iError && data && data.Result) {
|
||||
if (!iError) {
|
||||
PackageAdminStore.real(!!data.Result.Real);
|
||||
|
||||
let list = [];
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ PluginAdminStore.fetch = () => {
|
|||
PluginAdminStore.loading(true);
|
||||
Remote.pluginList((iError, data) => {
|
||||
PluginAdminStore.loading(false);
|
||||
if (!iError && data && data.Result) {
|
||||
if (!iError) {
|
||||
PluginAdminStore(
|
||||
data.Result.map(item => ({
|
||||
name: item.Name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue