From 22b8d3695f6adb56c6018ddddaf7d8a94ecf5755 Mon Sep 17 00:00:00 2001 From: Piero Nicolli Date: Mon, 23 Dec 2024 14:12:12 +0100 Subject: [PATCH 1/2] Fixed folder contents issue with persistent selection --- src/components/manage/Contents/Contents.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/manage/Contents/Contents.jsx b/src/components/manage/Contents/Contents.jsx index c462592977..39dd0dfe28 100644 --- a/src/components/manage/Contents/Contents.jsx +++ b/src/components/manage/Contents/Contents.jsx @@ -518,6 +518,7 @@ class Contents extends Component { this.setState( { currentPage: 0, + selected: [], }, () => this.setState({ filter: '' }, () => @@ -711,6 +712,7 @@ class Contents extends Component { this.setState( { currentPage: value, + selected: [], }, () => this.fetchContents(), ); @@ -728,6 +730,7 @@ class Contents extends Component { { pageSize: value, currentPage: 0, + selected: [], }, () => this.fetchContents(), ); @@ -787,6 +790,7 @@ class Contents extends Component { this.setState({ sort_on: values[0], sort_order: values[1], + selected: [], }); this.props.sortContent( getBaseUrl(this.props.pathname), @@ -814,6 +818,7 @@ class Contents extends Component { this.setState( { currentPage: 0, + selected: [], }, () => this.fetchContents(), ); @@ -839,6 +844,7 @@ class Contents extends Component { this.setState( { currentPage: 0, + selected: [], }, () => this.fetchContents(), ); From 4bf3bea44ab9e9d2c15aedabdc1547fea36d2cc4 Mon Sep 17 00:00:00 2001 From: Piero Nicolli Date: Mon, 23 Dec 2024 15:17:58 +0100 Subject: [PATCH 2/2] news item --- news/6555.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/6555.bugfix diff --git a/news/6555.bugfix b/news/6555.bugfix new file mode 100644 index 0000000000..8b789a7119 --- /dev/null +++ b/news/6555.bugfix @@ -0,0 +1 @@ +Fixed folder contents issues with persistent selection across page changes. @pnicolli