Add missing community default

This commit is contained in:
shilangyu 2022-01-16 16:48:14 +01:00
parent d64fe48328
commit 23f64387a7
1 changed files with 5 additions and 1 deletions

View File

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