Skip to content

Commit

Permalink
fix adding custom search configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi-of-the-sea committed Nov 13, 2024
1 parent 9fe0ada commit 36098be
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/clients/dish/src/addPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ export const addPlugins = (core, mode: keyof typeof MODE = 'EXTERN') => {
layoutTag: NineLayoutTag.TOP_LEFT,
addLoading: 'plugin/loadingIndicator/addLoadingKey',
removeLoading: 'plugin/loadingIndicator/removeLoadingKey',
customSearchMethods: MODE.EXTERN
? { dish: search, autocomplete }
: {},
customSelectResult: MODE.EXTERN
? {
categoryDenkmalsucheAutocomplete: selectResult,
}
: { categoryDenkmalSucheIntern: denkmalSearchResult },
customSearchMethods:
mode === MODE.EXTERN ? { dish: search, autocomplete } : {},
customSelectResult:
mode === MODE.EXTERN
? {
categoryDenkmalsucheAutocomplete: selectResult,
}
: { categoryDenkmalSucheIntern: denkmalSearchResult },
}
)
),
Expand Down

0 comments on commit 36098be

Please sign in to comment.