From 9fb3442250cf198782a08024195fcc5402479160 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Tue, 2 Nov 2021 11:02:45 -0400 Subject: [PATCH] Fix DevTools advanced tooltip display conditional check (#22669) --- .../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 = (