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

amaranhao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git


The following commit(s) were added to refs/heads/main by this push:
     new 30b6cb67 rep bug fix (#1404)
30b6cb67 is described below

commit 30b6cb6776271407fba92c789fb229c8854e2443
Author: Margaret Harrigan <[email protected]>
AuthorDate: Tue Jul 18 13:12:35 2023 -0400

    rep bug fix (#1404)
    
    Co-authored-by: Margaret Harrigan <[email protected]>
---
 app/addons/replication/components/activity.js | 5 +++--
 app/addons/replication/container.js           | 4 ++--
 app/addons/replication/controller.js          | 1 +
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/app/addons/replication/components/activity.js 
b/app/addons/replication/components/activity.js
index 0d1ae981..3a8dd9ec 100644
--- a/app/addons/replication/components/activity.js
+++ b/app/addons/replication/components/activity.js
@@ -48,7 +48,7 @@ export default class Activity extends React.Component {
       docs = this.props.docs.filter(doc => doc.selected);
     }
 
-    this.props.deleteDocs(docs);
+    this.props.deleteDocs(docs, this.props.pageLimit);
     this.closeModal();
   }
 
@@ -112,5 +112,6 @@ Activity.propTypes = {
   onFilterChange: PropTypes.func.isRequired,
   deleteDocs: PropTypes.func.isRequired,
   activitySort: PropTypes.object.isRequired,
-  changeActivitySort: PropTypes.func.isRequired
+  changeActivitySort: PropTypes.func.isRequired,
+  pageLimit: PropTypes.number.isRequired,
 };
diff --git a/app/addons/replication/container.js 
b/app/addons/replication/container.js
index 749f81ec..1a1ba460 100644
--- a/app/addons/replication/container.js
+++ b/app/addons/replication/container.js
@@ -109,7 +109,7 @@ const mapStateToProps = ({replication, databases}, 
ownProps) => {
   };
 };
 
-const mapDispatchToProps = (dispatch, ownProps) => {
+const mapDispatchToProps = (dispatch) => {
   return {
     checkForNewApi: () => dispatch(checkForNewApi()),
     updateFormField: (fieldName) => (value) => {
@@ -127,7 +127,7 @@ const mapDispatchToProps = (dispatch, ownProps) => {
     filterReplicate: (filter) => dispatch(filterReplicate(filter)),
     filterDocs: (filter) => dispatch(filterDocs(filter)),
     selectDoc: (doc) => dispatch(selectDoc(doc)),
-    deleteDocs: (docs) => dispatch(deleteDocs(docs, ownProps.pageLimit)),
+    deleteDocs: (docs, pageLimit) => dispatch(deleteDocs(docs, pageLimit)),
     selectAllDocs: () => dispatch(selectAllDocs()),
     changeActivitySort: (sort) => dispatch(changeActivitySort(sort)),
     selectAllReplicates: () => dispatch(selectAllReplicates()),
diff --git a/app/addons/replication/controller.js 
b/app/addons/replication/controller.js
index 0feb2214..bde06036 100644
--- a/app/addons/replication/controller.js
+++ b/app/addons/replication/controller.js
@@ -146,6 +146,7 @@ export default class ReplicationController extends 
React.Component {
       deleteDocs={deleteDocs}
       activitySort={activitySort}
       changeActivitySort={changeActivitySort}
+      pageLimit={pageLimit}
     />;
   }
 

Reply via email to