Skip to content

Commit ffbdfe8

Browse files
committed
fix(headlines-search): update condition for displaying topic description
- Change null check to isEmpty check for topic description - Ensure proper handling of empty strings in topic description
1 parent 9a2a7db commit ffbdfe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/headlines-search/widgets/category_item_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class TopicItemWidget extends StatelessWidget {
1414
Widget build(BuildContext context) {
1515
return ListTile(
1616
title: Text(topic.name),
17-
subtitle: topic.description != null
17+
subtitle: topic.description.isNotEmpty
1818
? Text(
1919
topic.description,
2020
maxLines: 2,

0 commit comments

Comments
 (0)