Migrates vis_controller from mountReactNode to toMountPoint (#137636)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Christiane (Tina) Heiligers 2022-08-01 12:38:07 -07:00 committed by GitHub
parent f549513abb
commit a8ebf5ad36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ import $ from 'jquery';
import React, { RefObject } from 'react';
import { METRIC_TYPE } from '@kbn/analytics';
import { mountReactNode } from '@kbn/core/public/utils';
import { toMountPoint } from '@kbn/kibana-react-plugin/public';
import { ChartsPluginSetup } from '@kbn/charts-plugin/public';
import type { PersistedState } from '@kbn/visualizations-plugin/public';
import { IInterpreterRenderHandlers } from '@kbn/expressions-plugin/public';
@ -163,7 +163,7 @@ export const createVislibVisController = (
uiState?: PersistedState
) {
const { legendPosition } = visParams;
this.unmountLegend = mountReactNode(
this.unmountLegend = toMountPoint(
<VisLegend
ref={this.legendRef}
vislibVis={this.vislibVis}