@samitouri / QOS-React-2 / commits / c76e4dbbc1

Removed an accidental console.log from DevTools source code

Brian Vaughn committed Jul 22, 2021 at 16:11 UTC c76e4dbbc1f18f8ba2c8f02d34cae9ad0954a7f0
1 file changed +2 -6
packages/react-devtools-scheduling-profiler/src/CanvasPage.js
+2 -6
@@ -282,17 +282,13 @@ function AutoSizedCanvas({data, height, width}: AutoSizedCanvasProps) {
282
283 useCanvasInteraction(canvasRef, interactor);
284
285 - const setIsContextMenuShownWrapper = (...args) => {
286 - console.log('setIsContextMenuShown()', ...args);
287 - setIsContextMenuShown(...args);
288 - };
285 useContextMenu({
286 data: {
287 data,
288 hoveredEvent,
289 },
290 id: CONTEXT_MENU_ID,
295 - onChange: setIsContextMenuShownWrapper,
291 + onChange: setIsContextMenuShown,
292 ref: canvasRef,
293 });
294
@@ -419,7 +415,7 @@ function AutoSizedCanvas({data, height, width}: AutoSizedCanvasProps) {
415 Copy component name
416 </ContextMenuItem>
417 )}
422 - {event !== null && (
418 + {event !== null && event.componentStack && (
419 <ContextMenuItem
420 onClick={() => copy(event.componentStack)}
421 title="Copy component stack">