Skip to content

Commit

Permalink
Merge pull request #664 from 4ster1sk/fix/issue-644
Browse files Browse the repository at this point in the history
アンテナ設定のユーザーが空なのを修正
  • Loading branch information
shiosyakeyakini-info authored Nov 10, 2024
2 parents 47cefb3 + cc1d3d6 commit fe7b1c5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/view/antenna_page/antenna_settings_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,12 @@ class AntennaSettingsForm extends HookConsumerWidget {
final settings = ref.watch(_antennaSettingsNotifierProvider);
final list = ref.watch(_usersListListProvider);
final controller = useTextEditingController();
ref.listen(
_initialSettingsProvider.select((settings) => settings.users.join("\n")),
(_, next) => controller.text = next,
useEffect(
() {
controller.text = settings.users.join("\n");
return null;
},
const [],
);

return Form(
Expand Down

0 comments on commit fe7b1c5

Please sign in to comment.