Skip to content

Commit 46cd06a

Browse files
committed
Fix import causing Kibana to crash in IE11. (#52248)
1 parent c5a1b71 commit 46cd06a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

x-pack/legacy/plugins/canvas/server/lib/build_embeddable_filters.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
import { Filter } from '../../types';
88
// @ts-ignore Untyped Local
99
import { buildBoolArray } from './build_bool_array';
10-
import { TimeRange, esFilters } from '../../../../../../src/plugins/data/server';
10+
11+
// TODO: We should be importing from `data/server` below instead of `data/common`, but
12+
// need to keep `data/common` since the contents of this file are currently imported
13+
// by the browser. This file should probably be refactored so that the pieces required
14+
// on the client live in a `public` directory instead. See kibana/issues/52343
15+
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
16+
import { TimeRange, esFilters } from '../../../../../../src/plugins/data/common';
1117

1218
export interface EmbeddableFilterInput {
1319
filters: esFilters.Filter[];

0 commit comments

Comments
 (0)