mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
fixing error when vis has no spy panel
This commit is contained in:
parent
a22d236d91
commit
c47f84984e
1 changed files with 3 additions and 1 deletions
|
@ -76,8 +76,10 @@ uiModules
|
|||
$scope.spy.mode = ($scope.uiState) ? $scope.uiState.get('spy.mode', {}) : {};
|
||||
|
||||
let applyClassNames = function () {
|
||||
let $visEl = getVisContainer();
|
||||
const $visEl = getVisContainer();
|
||||
const $spyEl = getSpyContainer();
|
||||
if (!$spyEl) return;
|
||||
|
||||
let fullSpy = ($scope.spy.mode && ($scope.spy.mode.fill || $scope.fullScreenSpy));
|
||||
|
||||
$visEl.toggleClass('spy-only', Boolean(fullSpy));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue