fix: resolve bug for changing category when viewing post

This commit is contained in:
Jacques 2025-02-18 10:22:37 +01:00
parent 016e27ebab
commit c1b74e97f3
2 changed files with 1 additions and 3 deletions

View file

@ -9,8 +9,6 @@ void main(List<String> args) {
runApp(const MyApp()); runApp(const MyApp());
} }
var timelineService = TimelineService();
class MyApp extends StatelessWidget { class MyApp extends StatelessWidget {
const MyApp({super.key}); const MyApp({super.key});

View file

@ -30,7 +30,7 @@ class _TimelinePostDetailScreenState extends State<TimelinePostDetailScreen> {
@override @override
void initState() { void initState() {
selectedCategory = widget.timelineService.categoryRepository selectedCategory = widget.timelineService.categoryRepository
.selectCategory(widget.post.category); .getCategory(widget.post.category);
super.initState(); super.initState();
} }