@samitouri / QOS-React-2 / commits / 9fb3442250

Fix DevTools advanced tooltip display conditional check (#22669)

Brian Vaughn committed Nov 2, 2021 at 11:02 UTC 9fb3442250cf198782a08024195fcc5402479160
1 file changed +5 -1
packages/react-devtools-shared/src/devtools/views/Profiler/SnapshotCommitList.js
+5 -1
@@ -217,7 +217,11 @@ function List({
217
218 // Only some React versions include commit durations.
219 // Show a richer tooltip only for builds that have that info.
220 - if (effectDuration !== null || passiveEffectDuration !== null) {
220 + if (
221 + effectDuration !== null ||
222 + passiveEffectDuration !== null ||
223 + priorityLevel !== null
224 + ) {
225 tooltipLabel = (
226 <ul className={styles.TooltipList}>
227 {priorityLevel !== null && (