diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/SubscriptionDetails.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/SubscriptionDetails.js index be71eb4e8f8..9152e9f58b0 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/SubscriptionDetails.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/SubscriptionDetails.js @@ -194,10 +194,9 @@ class SubscriptionDetails extends React.Component { `/admin/subscription/${this.props.uuid}?` + encodedExtraParams, ).then(res => { if (res.status === 200) { - console.log(res.data.data.data); this.setState({ loading: false, - data: res.data.data.data + data: res.data.data }); } @@ -216,6 +215,21 @@ class SubscriptionDetails extends React.Component { }); }; + handleTableChange = (pagination, filters, sorter) => { + const pager = {...this.state.pagination}; + pager.current = pagination.current; + this.setState({ + pagination: pager, + }); + this.fetch({ + results: pagination.pageSize, + page: pagination.current, + sortField: sorter.field, + sortOrder: sorter.order, + ...filters, + }); + }; + render() { const {data, pagination, loading, selectedRows} = this.state; return ( @@ -240,14 +254,16 @@ class SubscriptionDetails extends React.Component {