Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Jan 13, 2022
1 parent 4ff4e87 commit 0a67b2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/SearchBlock/SearchBlockView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,15 @@ export default function SearchBlockView(props) {
);

// TODO: this is a hack, please solve it properly
registry.searchui.globalsearch = {
...registry.searchui.globalsearch,
registry.searchui[appName] = {
...registry.searchui[appName],
requestParams: {
params: {
index: data.rawIndex,
},
},
};

// console.log('registry', registry);
return (
<BodyClass className="searchlib-page">
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import SearchBlockEdit from './SearchBlock/SearchBlockEdit';
import SelectWidget from './SearchBlock/SelectWidget';

const applyConfig = (config) => {
config.widgets.id.qa_queryTypes = SelectWidget;
config.settings.searchlib = registry;

config.blocks.blocksConfig.searchlib = {
Expand Down Expand Up @@ -56,7 +57,6 @@ export const installGlobalSearch = (config) => {
// config.settings.devProxyToApiPath = false;
config.settings.searchlib = installConfig(config.settings.searchlib);
// config.settings.searchlib.resolve.LeftColumnLayout.component = LeftColumnLayout;
config.widgets.id.qa_queryTypes = SelectWidget;

const { globalsearch } = config.settings.searchlib.searchui;

Expand Down

0 comments on commit 0a67b2e

Please sign in to comment.