Skip to content

Commit

Permalink
another round of TS changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Mar 2, 2020
1 parent 37a4b7b commit 5018c58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
} from '../../../../../../../plugins/kibana_utils/public';
import { esFilters, FilterManager, Filter, Query } from '../../../../../../../plugins/data/public';

interface AppState {
export interface AppState {
/**
* Columns displayed in the table, cannot be changed by UI, just in discover's main app
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* under the License.
*/
import uuid from 'uuid/v4';
// @ts-ignore
import rison from 'rison-node';
import {
IFieldType,
Expand Down Expand Up @@ -72,12 +73,13 @@ export function getMapsAppUrl(
}

// Copy filters and query in app state
const mapsAppState: object = {
const mapsAppState: any = {
filters: appState.filters || [],
};
if (appState.query) {
mapsAppState.query = appState.query;
}
// @ts-ignore
mapAppParams.set('_a', rison.encode(mapsAppState));

// create initial layer descriptor
Expand Down

0 comments on commit 5018c58

Please sign in to comment.