mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
fixing error when vis has no spy panel (#9115)
This commit is contained in:
parent
f0a8887f7b
commit
5ef7a524c1
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