From 64d533e9a44bfd51f0d9712165b0c277b00e1551 Mon Sep 17 00:00:00 2001 From: Piero Nicolli Date: Tue, 24 Dec 2024 09:55:18 +0100 Subject: [PATCH] fix: porting of pr https://github.com/plone/volto/pull/6554 --- .../volto/components/manage/Contents/Contents.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/customizations/volto/components/manage/Contents/Contents.jsx b/src/customizations/volto/components/manage/Contents/Contents.jsx index e59f608..f410ea9 100644 --- a/src/customizations/volto/components/manage/Contents/Contents.jsx +++ b/src/customizations/volto/components/manage/Contents/Contents.jsx @@ -527,6 +527,7 @@ class Contents extends Component { this.setState( { currentPage: 0, + selected: [], }, () => this.setState({ filter: '' }, () => @@ -692,6 +693,7 @@ class Contents extends Component { this.setState( { currentPage: value, + selected: [], }, () => this.fetchContents(), ); @@ -709,6 +711,7 @@ class Contents extends Component { { pageSize: value, currentPage: 0, + selected: [], }, () => this.fetchContents(), ); @@ -772,6 +775,7 @@ class Contents extends Component { this.setState({ sort_on: values[0], sort_order: values[1], + selected: [], }); this.props.sortContent( getBaseUrl(this.props.pathname), @@ -799,6 +803,7 @@ class Contents extends Component { this.setState( { currentPage: 0, + selected: [], }, () => this.fetchContents(), ); @@ -824,6 +829,7 @@ class Contents extends Component { this.setState( { currentPage: 0, + selected: [], }, () => this.fetchContents(), );