Skip to content

Commit

Permalink
Fallback to former data.block for SearchBlockView shadows et.al..
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Mar 21, 2023
1 parent 69b7ade commit 60e7f8f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ function getDisplayName(WrappedComponent) {

export default function withQuerystringResults(WrappedComponent) {
function WithQuerystringResults(props) {
const { id, data = {}, properties: content, path, variation } = props;
const {
data = {},
id = data.block,
properties: content,
path,
variation,
} = props;
const { settings } = config;
const querystring = data.querystring || data; // For backwards compat with data saved before Blocks schema. Note, this is also how the Search block passes data to ListingBody

Expand Down

0 comments on commit 60e7f8f

Please sign in to comment.