Add missing community default

This commit is contained in:
shilangyu 2022-01-16 16:48:14 +01:00
parent 9e7793f949
commit 766762078c
1 changed files with 5 additions and 1 deletions

View File

@ -17,8 +17,12 @@ class CreatePostCommunityPicker extends HookWidget {
@override
Widget build(BuildContext context) {
final controller = useTextEditingController();
final store = context.read<CreatePostStore>();
final controller = useTextEditingController(
text: store.selectedCommunity != null
? _communityString(store.selectedCommunity!)
: '',
);
return AsyncStoreListener(
asyncStore: context.read<CreatePostStore>().searchCommunitiesState,