Skip to content

Commit

Permalink
Move decision-making whether AddressSearch is displayed to addPlugins
Browse files Browse the repository at this point in the history
  • Loading branch information
dopenguin committed Mar 5, 2024
1 parent a79aa1e commit 7875ec0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/clients/meldemichel/src/addPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const addPlugins = (core, mode: keyof typeof MODE) => {
core.addPlugins(
[
AddressSearch({
displayComponent: true,
displayComponent: mode !== MODE.SINGLE,
layoutTag: NineLayoutTag.TOP_LEFT,
addLoading: 'plugin/loadingIndicator/addLoadingKey',
removeLoading: 'plugin/loadingIndicator/removeLoadingKey',
Expand Down
2 changes: 1 addition & 1 deletion packages/clients/meldemichel/src/mapConfigurations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const mapConfigurations: Record<
}),
[MODE.SINGLE]: () => ({
...commonMapConfiguration,
addressSearch: { ...addressSearch, displayComponent: false },
addressSearch,
layers: commonLayers,
attributions: {
...commonAttributions,
Expand Down

0 comments on commit 7875ec0

Please sign in to comment.