From feaaf8c85e326c883574e2a3da1060cdd0e6ac5f Mon Sep 17 00:00:00 2001 From: IanM Date: Thu, 3 Oct 2024 08:08:09 +0100 Subject: [PATCH] fix: compat: still return controls view item, even if empty --- .../forum/components/DiscussionListItem.tsx | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/framework/core/js/src/forum/components/DiscussionListItem.tsx b/framework/core/js/src/forum/components/DiscussionListItem.tsx index dd5ebba475..da7df0515b 100644 --- a/framework/core/js/src/forum/components/DiscussionListItem.tsx +++ b/framework/core/js/src/forum/components/DiscussionListItem.tsx @@ -74,7 +74,7 @@ export default class DiscussionListItem - {controls} - + <> + {!!controls.length && ( + + {controls} + + )} + ); }