Skip to content

Commit c76e4db

Browse files
author
Brian Vaughn
committed
Removed an accidental console.log from DevTools source code
1 parent f4161c3 commit c76e4db

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/react-devtools-scheduling-profiler/src/CanvasPage.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,17 +282,13 @@ function AutoSizedCanvas({data, height, width}: AutoSizedCanvasProps) {
282282

283283
useCanvasInteraction(canvasRef, interactor);
284284

285-
const setIsContextMenuShownWrapper = (...args) => {
286-
console.log('setIsContextMenuShown()', ...args);
287-
setIsContextMenuShown(...args);
288-
};
289285
useContextMenu({
290286
data: {
291287
data,
292288
hoveredEvent,
293289
},
294290
id: CONTEXT_MENU_ID,
295-
onChange: setIsContextMenuShownWrapper,
291+
onChange: setIsContextMenuShown,
296292
ref: canvasRef,
297293
});
298294

@@ -419,7 +415,7 @@ function AutoSizedCanvas({data, height, width}: AutoSizedCanvasProps) {
419415
Copy component name
420416
</ContextMenuItem>
421417
)}
422-
{event !== null && (
418+
{event !== null && event.componentStack && (
423419
<ContextMenuItem
424420
onClick={() => copy(event.componentStack)}
425421
title="Copy component stack">

0 commit comments

Comments
 (0)