Skip to content

Commit

Permalink
fix panel switch option 1 append left tours to right
Browse files Browse the repository at this point in the history
  • Loading branch information
christineweng committed Apr 12, 2024
1 parent b34f248 commit 2349bb1
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import React, { memo, useMemo, useCallback } from 'react';
import { useExpandableFlyoutApi } from '@kbn/expandable-flyout';
import { useRightPanelContext } from '../context';
import { FlyoutTour } from '../../shared/components/flyout_tour';
import { getRightSectionTourSteps } from '../../shared/utils/tour_step_config';
import {
getRightSectionTourSteps,
getLeftSectionTourSteps,
} from '../../shared/utils/tour_step_config';
import { getField } from '../../shared/utils';
import { DocumentDetailsRightPanelKey } from '..';
import { DocumentDetailsLeftPanelKey } from '../../left';
Expand Down Expand Up @@ -52,7 +55,10 @@ export const RightPanelTour: FC = memo(() => {
});
}, [eventId, indexName, scopeId, openRightPanel]);

const tourStepContent = useMemo(() => getRightSectionTourSteps(), []);
const tourStepContent = useMemo(
() => [...getRightSectionTourSteps(), ...getLeftSectionTourSteps()],
[]
);

return showTour ? (
<FlyoutTour
Expand Down

0 comments on commit 2349bb1

Please sign in to comment.