mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
parent
e282f7026a
commit
3b4c17d19e
1 changed files with 4 additions and 1 deletions
|
@ -52,7 +52,7 @@ import {
|
||||||
MAP_SAVED_OBJECT_TYPE,
|
MAP_SAVED_OBJECT_TYPE,
|
||||||
MAP_APP_PATH
|
MAP_APP_PATH
|
||||||
} from '../../common/constants';
|
} from '../../common/constants';
|
||||||
|
import { FilterStateStore } from '@kbn/es-query';
|
||||||
import { setup as data } from '../../../../../../src/legacy/core_plugins/data/public/legacy';
|
import { setup as data } from '../../../../../../src/legacy/core_plugins/data/public/legacy';
|
||||||
|
|
||||||
const REACT_ANCHOR_DOM_ELEMENT_ID = 'react-maps-root';
|
const REACT_ANCHOR_DOM_ELEMENT_ID = 'react-maps-root';
|
||||||
|
@ -170,6 +170,9 @@ app.controller('GisMapController', ($scope, $route, kbnUrl, localStorage, AppSta
|
||||||
};
|
};
|
||||||
|
|
||||||
function addFilters(newFilters) {
|
function addFilters(newFilters) {
|
||||||
|
newFilters.forEach(filter => {
|
||||||
|
filter.$state = FilterStateStore.APP_STATE;
|
||||||
|
});
|
||||||
$scope.updateFiltersAndDispatch([...$scope.filters, ...newFilters]);
|
$scope.updateFiltersAndDispatch([...$scope.filters, ...newFilters]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue