Skip to content

Commit

Permalink
Fix Discover console Range Error (#48608) (#48671)
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal authored Oct 18, 2019
1 parent e3bd0c8 commit d264383
Showing 1 changed file with 22 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,26 @@ import { uiModules } from 'ui/modules';
import { DocViewer } from './doc_viewer';

uiModules.get('apps/discover').directive('docViewer', (reactDirective: any) => {
return reactDirective(DocViewer, undefined, {
restrict: 'E',
scope: {
hit: '=',
indexPattern: '=',
filter: '=?',
columns: '=?',
onAddColumn: '=?',
onRemoveColumn: '=?',
},
});
return reactDirective(
DocViewer,
[
'hit',
['indexPattern', { watchDepth: 'reference' }],
['filter', { watchDepth: 'reference' }],
['columns', { watchDepth: 'collection' }],
['onAddColumn', { watchDepth: 'reference' }],
['onRemoveColumn', { watchDepth: 'reference' }],
],
{
restrict: 'E',
scope: {
hit: '=',
indexPattern: '=',
filter: '=?',
columns: '=?',
onAddColumn: '=?',
onRemoveColumn: '=?',
},
}
);
});

0 comments on commit d264383

Please sign in to comment.