Skip to content

Commit

Permalink
Fix trace detail page's back button disappeared
Browse files Browse the repository at this point in the history
Signed-off-by: zxg <[email protected]>
  • Loading branch information
shwin0901 committed Aug 28, 2021
1 parent 0c1fcd1 commit 0ace963
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/jaeger-ui/src/components/TracePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,15 @@ export class TracePageImpl extends React.PureComponent<TProps, TState> {
};

render() {
const { archiveEnabled, archiveTraceState, embedded, id, searchUrl, uiFind, trace } = this.props;
const {
archiveEnabled,
archiveTraceState,
embedded,
id,
uiFind,
trace,
location: { state: locationState },
} = this.props;
const { slimView, viewType, headerHeight, viewRange } = this.state;
if (!trace || trace.state === fetchedState.LOADING) {
return <LoadingIndicator className="u-mt-vast" centered />;
Expand Down Expand Up @@ -369,7 +377,7 @@ export class TracePageImpl extends React.PureComponent<TProps, TState> {
showShortcutsHelp: !isEmbedded,
showStandaloneLink: isEmbedded,
showViewOptions: !isEmbedded,
toSearch: searchUrl,
toSearch: (locationState && locationState.fromSearch) || null,
trace: data,
updateNextViewRangeTime: this.updateNextViewRangeTime,
updateViewRangeTime: this.updateViewRangeTime,
Expand Down

0 comments on commit 0ace963

Please sign in to comment.