You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by ha...@apache.org on 2018/06/30 00:19:33 UTC

[incubator-skywalking-ui] branch 5.0.0/beta2 updated: Init paging

This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch 5.0.0/beta2
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-ui.git


The following commit(s) were added to refs/heads/5.0.0/beta2 by this push:
     new 7b1477f  Init paging
7b1477f is described below

commit 7b1477f749ce0253a5287d7e6be14d4c9c556b87
Author: Gao Hongtao <ha...@gmail.com>
AuthorDate: Sat Jun 30 08:17:55 2018 +0800

    Init paging
---
 src/routes/Alarm/Alarm.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/routes/Alarm/Alarm.js b/src/routes/Alarm/Alarm.js
index 8cbc4ac..5465a8d 100644
--- a/src/routes/Alarm/Alarm.js
+++ b/src/routes/Alarm/Alarm.js
@@ -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 }) => {