From 840f94d0b41c819d82d9f30700ccb810e56625eb Mon Sep 17 00:00:00 2001 From: Piero Nicolli Date: Mon, 23 Dec 2024 14:12:12 +0100 Subject: [PATCH] Fixed folder contents issue with persistent selection --- packages/volto/src/components/manage/Contents/Contents.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/volto/src/components/manage/Contents/Contents.jsx b/packages/volto/src/components/manage/Contents/Contents.jsx index cf51a250fa..1922a390f4 100644 --- a/packages/volto/src/components/manage/Contents/Contents.jsx +++ b/packages/volto/src/components/manage/Contents/Contents.jsx @@ -456,6 +456,7 @@ class Contents extends Component { this.setState( { currentPage: 0, + selected: [], }, () => this.setState({ filter: '' }, () => @@ -652,6 +653,7 @@ class Contents extends Component { this.setState( { currentPage: value, + selected: [], }, () => this.fetchContents(), ); @@ -669,6 +671,7 @@ class Contents extends Component { { pageSize: value, currentPage: 0, + selected: [], }, () => this.fetchContents(), ); @@ -728,6 +731,7 @@ class Contents extends Component { this.setState({ sort_on: values[0], sort_order: values[1], + selected: [], }); this.props.sortContent( getBaseUrl(this.props.pathname), @@ -755,6 +759,7 @@ class Contents extends Component { this.setState( { currentPage: 0, + selected: [], }, () => this.fetchContents(), ); @@ -780,6 +785,7 @@ class Contents extends Component { this.setState( { currentPage: 0, + selected: [], }, () => this.fetchContents(), );