Skip to content

Commit

Permalink
Merge branch 'search/server-strategy-example' of github.com:lizozom/k…
Browse files Browse the repository at this point in the history
…ibana into search/server-strategy-example
  • Loading branch information
Liza K committed Aug 10, 2020
2 parents 1960c84 + 741d8b3 commit 9aebaae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions examples/search_examples/public/application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { AppPluginStartDependencies } from './types';
import { SearchExamplesApp } from './components/app';

export const renderApp = (
{ notifications, savedObjects, uiSettings, http }: CoreStart,
{ notifications, savedObjects, http }: CoreStart,
{ navigation, data }: AppPluginStartDependencies,
{ appBasePath, element }: AppMountParameters
) => {
Expand All @@ -33,7 +33,6 @@ export const renderApp = (
basename={appBasePath}
notifications={notifications}
savedObjectsClient={savedObjects.client}
uiSettings={uiSettings}
navigation={navigation}
data={data}
http={http}
Expand Down
4 changes: 1 addition & 3 deletions examples/search_examples/public/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ import {
interface SearchExamplesAppDeps {
basename: string;
notifications: CoreStart['notifications'];
uiSettings: CoreStart['uiSettings'];
http: CoreStart['http'];
savedObjectsClient: CoreStart['savedObjects']['client'];
navigation: NavigationPublicPluginStart;
Expand All @@ -88,7 +87,6 @@ export const SearchExamplesApp = ({
http,
basename,
notifications,
uiSettings,
savedObjectsClient,
navigation,
data,
Expand Down Expand Up @@ -257,7 +255,7 @@ export const SearchExamplesApp = ({
options={formatFieldsToComboBox(numericFields)}
selectedOptions={formatFieldToComboBox(selectedField)}
singleSelection={true}
onChange={(option: any) => {
onChange={(option) => {
const field = indexPattern.getFieldByName(option[0].label);
setSelectedField(field || null);
}}
Expand Down

0 comments on commit 9aebaae

Please sign in to comment.