Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/actions/profile-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2015,6 +2015,7 @@ export function toggleBottomBoxFullscreen(): ThunkAction<void> {
export function handleCallNodeTransformShortcut(
event: React.KeyboardEvent<HTMLElement>,
threadsKey: ThreadsKey,
callNodeInfo: CallNodeInfo,
callNodeIndex: IndexIntoCallNodeTable
): ThunkAction<void> {
return (dispatch, getState) => {
Expand All @@ -2023,7 +2024,6 @@ export function handleCallNodeTransformShortcut(
}
const threadSelectors = getThreadSelectorsFromThreadsKey(threadsKey);
const unfilteredThread = threadSelectors.getThread(getState());
const callNodeInfo = threadSelectors.getCallNodeInfo(getState());
const implementation = getImplementationFilter(getState());
const inverted = getInvertCallstack(getState());
const callNodePath = callNodeInfo.getCallNodePathFromIndex(callNodeIndex);
Expand Down
3 changes: 2 additions & 1 deletion src/components/calltree/CallTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ class CallTreeImpl extends PureComponent<Props> {
rightClickedCallNodeIndex,
handleCallNodeTransformShortcut,
threadsKey,
callNodeInfo,
} = this.props;
const nodeIndex =
rightClickedCallNodeIndex !== null
Expand All @@ -284,7 +285,7 @@ class CallTreeImpl extends PureComponent<Props> {
if (nodeIndex === null) {
return;
}
handleCallNodeTransformShortcut(event, threadsKey, nodeIndex);
handleCallNodeTransformShortcut(event, threadsKey, callNodeInfo, nodeIndex);
};

_onEnterOrDoubleClick = (nodeId: IndexIntoCallNodeTable) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/flame-graph/FlameGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class FlameGraphImpl
return;
}

handleCallNodeTransformShortcut(event, threadsKey, nodeIndex);
handleCallNodeTransformShortcut(event, threadsKey, callNodeInfo, nodeIndex);
};

_onCopy = (event: ClipboardEvent) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/stack-chart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class StackChartImpl extends React.PureComponent<Props> {
return;
}

handleCallNodeTransformShortcut(event, threadsKey, nodeIndex);
handleCallNodeTransformShortcut(event, threadsKey, callNodeInfo, nodeIndex);
};

_onDoubleClick = (callNodeIndex: IndexIntoCallNodeTable | null) => {
Expand Down
Loading