Skip to content

Commit 432c494

Browse files
committed
Fix Discover console Range Error
1 parent f79292a commit 432c494

1 file changed

Lines changed: 22 additions & 11 deletions

File tree

src/legacy/core_plugins/kibana/public/discover/doc_viewer/doc_viewer_directive.ts

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,26 @@ import { uiModules } from 'ui/modules';
2222
import { DocViewer } from './doc_viewer';
2323

2424
uiModules.get('apps/discover').directive('docViewer', (reactDirective: any) => {
25-
return reactDirective(DocViewer, undefined, {
26-
restrict: 'E',
27-
scope: {
28-
hit: '=',
29-
indexPattern: '=',
30-
filter: '=?',
31-
columns: '=?',
32-
onAddColumn: '=?',
33-
onRemoveColumn: '=?',
34-
},
35-
});
25+
return reactDirective(
26+
DocViewer,
27+
[
28+
'hit',
29+
['indexPattern', { watchDepth: 'reference' }],
30+
['filter', { watchDepth: 'reference' }],
31+
['columns', { watchDepth: 'collection' }],
32+
['onAddColumn', { watchDepth: 'reference' }],
33+
['onRemoveColumn', { watchDepth: 'reference' }],
34+
],
35+
{
36+
restrict: 'E',
37+
scope: {
38+
hit: '=',
39+
indexPattern: '=',
40+
filter: '=?',
41+
columns: '=?',
42+
onAddColumn: '=?',
43+
onRemoveColumn: '=?',
44+
},
45+
}
46+
);
3647
});

0 commit comments

Comments
 (0)