From ed8350c97822aeb3043abfb9e9d3a6548d0661ed Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Mon, 1 Nov 2021 15:29:28 -0400 Subject: [PATCH] Fix DevTools advanced tooltip display conditional check --- .../src/devtools/views/Profiler/SnapshotCommitList.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/react-devtools-shared/src/devtools/views/Profiler/SnapshotCommitList.js b/packages/react-devtools-shared/src/devtools/views/Profiler/SnapshotCommitList.js index 4fda4177706ad..2b837f28f6495 100644 --- a/packages/react-devtools-shared/src/devtools/views/Profiler/SnapshotCommitList.js +++ b/packages/react-devtools-shared/src/devtools/views/Profiler/SnapshotCommitList.js @@ -217,7 +217,11 @@ function List({ // Only some React versions include commit durations. // Show a richer tooltip only for builds that have that info. - if (effectDuration !== null || passiveEffectDuration !== null) { + if ( + effectDuration !== null || + passiveEffectDuration !== null || + priorityLevel !== null + ) { tooltipLabel = (