Skip to content

Commit

Permalink
Fix backend error when there is no query supplied (#6423)
Browse files Browse the repository at this point in the history
  • Loading branch information
tedw87 authored Oct 29, 2024
1 parent 907f5a4 commit 8fee114
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/volto/news/3839.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix error "Exception: No query supplied" in the listing block, when there is no criteria selected. @tedw87
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ export default function getListingBlockAsyncData(props) {
const subrequestID = content?.UID ? `${content?.UID}-${id}` : id;
const currentPage = getCurrentPage(location, id);

if (!data.querystring) {
return [
async () => {
return null;
},
];
}

return [
dispatch(
getQueryStringResults(
Expand Down

0 comments on commit 8fee114

Please sign in to comment.