Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Sep 27, 2024
1 parent 72f5196 commit d89f5d8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { FlyoutBody } from '@kbn/security-solution-common';
import { useExpandableFlyoutApi } from '@kbn/expandable-flyout';
import type { DocumentDetailsAnalyzerPanelKey } from '../shared/constants/panel_keys';
import { DetailsPanel } from '../../../resolver/view/details_panel';
import type { NodeEventOnClick } from '../../../resolver/view/panels/node_events_of_type';
import { DocumentDetailsPreviewPanelKey } from '../shared/constants/panel_keys';
import { ALERT_PREVIEW_BANNER } from '../preview/constants';

Expand All @@ -32,7 +33,7 @@ export interface AnalyzerPanelExpandableFlyoutProps extends FlyoutPanelProps {
export const AnalyzerPanel: React.FC<AnalyzerPanelProps> = ({ resolverComponentInstanceID }) => {
const { openPreviewPanel } = useExpandableFlyoutApi();

const openPreview = useCallback(
const openPreview = useCallback<NodeEventOnClick>(
({ documentId, indexName, scopeId }) =>
() => {
openPreviewPanel({
Expand Down

0 comments on commit d89f5d8

Please sign in to comment.