Skip to content

Commit

Permalink
fix history issue (#371)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Wei <menwe@amazon.com>
  • Loading branch information
mengweieric authored Apr 17, 2023
1 parent 6f13761 commit 6f404d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion public/components/event_analytics/explorer/log_explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import $ from 'jquery';
import { isEmpty, map } from 'lodash';
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { useHistory } from 'react-router-dom';
import { LogExplorerRouterContext } from '..';
import {
APP_ANALYTICS_TAB_ID_REGEX,
Expand Down Expand Up @@ -53,11 +54,11 @@ export const LogExplorer = ({
setToast,
savedObjectId,
getExistingEmptyTab,
history,
notifications,
http,
queryManager,
}: ILogExplorerProps) => {
const history = useHistory();
const routerContext = useContext(LogExplorerRouterContext);
const dispatch = useDispatch();
const tabIds = useSelector(selectQueryTabs).queryTabIds.filter(
Expand Down
2 changes: 0 additions & 2 deletions public/components/event_analytics/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const EventAnalytics = ({
setBreadcrumbs,
...props
}: EventAnalyticsProps) => {
const history = useHistory();
const [toasts, setToasts] = useState<Toast[]>([]);

const eventAnalyticsBreadcrumb = {
Expand Down Expand Up @@ -95,7 +94,6 @@ export const EventAnalytics = ({
http={http}
setToast={setToast}
getExistingEmptyTab={getExistingEmptyTab}
history={history}
notifications={notifications}
queryManager={queryManager}
/>
Expand Down

0 comments on commit 6f404d7

Please sign in to comment.