File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,12 @@ export default class PushAudiencesIndex extends DashboardView {
48
48
}
49
49
}
50
50
51
- getAudienceData ( ) {
51
+ getAudienceData ( createdAudiences = 0 ) {
52
52
this . props . schema . dispatch ( SchemaStore . ActionTypes . FETCH ) ;
53
53
return this . props . pushaudiences . dispatch ( PushAudiencesStore . ActionTypes . FETCH ,
54
54
{
55
55
limit : PushConstants . SHOW_MORE_LIMIT ,
56
- min : PushConstants . INITIAL_PAGE_SIZE ,
56
+ min : PushConstants . INITIAL_PAGE_SIZE + createdAudiences ,
57
57
xhrKey : XHR_KEY ,
58
58
} )
59
59
}
@@ -198,9 +198,10 @@ export default class PushAudiencesIndex extends DashboardView {
198
198
this . setState ( {
199
199
showCreateAudienceModal : false ,
200
200
} ) ;
201
- // After create the new audience update audience's list to get the new objectId
201
+ // After create the new audience update audience's list to get the
202
+ // new objectId
202
203
this . setState ( { loading : true } ) ;
203
- this . getAudienceData ( ) . then ( ( ) => {
204
+ this . getAudienceData ( 1 ) . then ( ( ) => {
204
205
this . setState ( { loading : false } ) ;
205
206
} ) . catch ( err => {
206
207
console . error ( err )
You can’t perform that action at this time.
0 commit comments