Skip to content

Commit

Permalink
Fix crash when creating a new block
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Jan 13, 2022
1 parent f19093a commit 4ff4e87
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/SearchBlock/SearchBlockView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,14 @@ export default function SearchBlockView(props) {
data,
schema,
);
registry.searchui.globalsearch.requestParams = {
params: {
index: data.rawIndex,

// TODO: this is a hack, please solve it properly
registry.searchui.globalsearch = {
...registry.searchui.globalsearch,
requestParams: {
params: {
index: data.rawIndex,
},
},
};
// console.log('registry', registry);
Expand Down

0 comments on commit 4ff4e87

Please sign in to comment.