Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit02c0cae

Browse files
committed
build: production
1 parent0e369af commit02c0cae

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

‎deploy/production/web.tar.gz‎

-52 Bytes
Binary file not shown.

‎stores/AccountStore/index.js‎

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const AccountStore = t
3636
},
3737

3838
getsubscribedCommunities(){
39-
const{
40-
user:{ subscribedCommunities},
41-
}=self
39+
const{user:{ subscribedCommunities}}=self
4240
return{
4341
...stripMobx(subscribedCommunities),
4442
}
@@ -51,7 +49,7 @@ const AccountStore = t
5149
afterAttach(){
5250
constuser=BStore.get('user')
5351
if(user){
54-
console.log('beforeafterCreate: ',user)
52+
console.log('beforeafterAttach: ',user)
5553
self.updateAccount(user)
5654
}
5755
},
@@ -81,11 +79,7 @@ const AccountStore = t
8179
self.user.subscribedCommunities=data
8280
},
8381
addSubscribedCommunity(community){
84-
const{
85-
user:{
86-
subscribedCommunities:{ entries},
87-
},
88-
}=self
82+
const{user:{subscribedCommunities:{ entries}}}=self
8983

9084
self.user.subscribedCommunities.entries=R.insert(0,community,entries)
9185
self.user.subscribedCommunities.totalCount+=1
@@ -94,11 +88,7 @@ const AccountStore = t
9488
},
9589

9690
removeSubscribedCommunity(community){
97-
const{
98-
user:{
99-
subscribedCommunities:{ entries},
100-
},
101-
}=self
91+
const{user:{subscribedCommunities:{ entries}}}=self
10292

10393
constindex=R.findIndex(R.propEq('id',community.id),entries)
10494
self.user.subscribedCommunities.entries=R.remove(index,1,entries)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp