From 766762078cf3cab40c613def2f1c9e93733cb67b Mon Sep 17 00:00:00 2001 From: shilangyu Date: Sun, 16 Jan 2022 16:48:14 +0100 Subject: [PATCH] Add missing community default --- lib/pages/create_post/create_post_community_picker.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/pages/create_post/create_post_community_picker.dart b/lib/pages/create_post/create_post_community_picker.dart index 66b33d9..9db2925 100644 --- a/lib/pages/create_post/create_post_community_picker.dart +++ b/lib/pages/create_post/create_post_community_picker.dart @@ -17,8 +17,12 @@ class CreatePostCommunityPicker extends HookWidget { @override Widget build(BuildContext context) { - final controller = useTextEditingController(); final store = context.read(); + final controller = useTextEditingController( + text: store.selectedCommunity != null + ? _communityString(store.selectedCommunity!) + : '', + ); return AsyncStoreListener( asyncStore: context.read().searchCommunitiesState,