Skip to content

Commit

Permalink
Merge pull request apache#186 from apache/5.0.0/beta2
Browse files Browse the repository at this point in the history
Init paging
  • Loading branch information
hanahmily committed Jun 30, 2018
2 parents be7cd13 + 7b1477f commit 3ecf338
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/Alarm/Alarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ export default class Alarm extends PureComponent {
}
handleChange = (variables) => {
const type = variables.alarmType.charAt(0) + variables.alarmType.slice(1).toLowerCase();
const { paging = defaultPaging } = variables;
this.props.dispatch({
type: 'alarm/fetchData',
payload: { variables, reducer: `save${type}AlarmList` },
payload: { variables: { ...variables, paging }, reducer: `save${type}AlarmList` },
});
}
renderList = ({ items, total }) => {
Expand Down

0 comments on commit 3ecf338

Please sign in to comment.