Skip to content

Commit

Permalink
fix: send page 1 as meta, fixes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
just4fun committed May 18, 2018
1 parent 54d4229 commit 4900eac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/PmSessionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import PmSessionItem from './PmSessionItem';

export default class PrivateList extends Component {
componentDidMount() {
this.props.fetchPmSessionList();
this.props.fetchPmSessionList({ page: 1 });
}

endReached() {
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Message extends Component {
navigation={navigation}
currentUserId={userId}
markPmAsRead={({ plid }) => this.props.markPmAsRead({ plid })}
fetchPmSessionList={() => this.fetchPmSessionList({})}
fetchPmSessionList={({ page }) => this.fetchPmSessionList({ page })}
refreshPmSessionList={({ page, isEndReached }) => this.refreshPmSessionList({ page, isEndReached })} />
);
}
Expand Down

0 comments on commit 4900eac

Please sign in to comment.