Skip to content

Commit

Permalink
Migrates vis_controller from mountReactNode to toMountPoint (#137636
Browse files Browse the repository at this point in the history
)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
TinaHeiligers and kibanamachine authored Aug 1, 2022
1 parent f549513 commit a8ebf5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/vis_types/vislib/public/vis_controller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit a8ebf5a

Please sign in to comment.