From 62af5dbf64ac3fe3688ebbdd65ae0dd19710a1bd Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 2 Apr 2023 16:04:37 +0800 Subject: [PATCH] Fix compact thread status not showing badge when there's no thread number --- src/components/timeline.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/timeline.jsx b/src/components/timeline.jsx index a2c2f04f..c07a5bc8 100644 --- a/src/components/timeline.jsx +++ b/src/components/timeline.jsx @@ -559,13 +559,17 @@ function TimelineStatusCompact({ status, instance }) { const sKey = statusKey(id, instance); return (
- {!!snapStates.statusThreadNumber[sKey] && ( + {!!snapStates.statusThreadNumber[sKey] ? (
{snapStates.statusThreadNumber[sKey] ? ` ${snapStates.statusThreadNumber[sKey]}/X` : ''}
+ ) : ( +
+ +
)}
{statusPeekText}