diff options
author | Reinier van der Leer <pwuts@agpt.co> | 2024-02-21 02:09:23 +0100 |
---|---|---|
committer | Reinier van der Leer <pwuts@agpt.co> | 2024-02-21 02:09:23 +0100 |
commit | e44ca4185a0d56273b7e2cd68fc5ca42a4f9b73e (patch) | |
tree | 4ae708a254473bdbd78266afb6bc66aa9e08e47e | |
parent | fix(ci/frontend): Add trigger on `push` including workflow file (diff) | |
download | Auto-GPT-e44ca4185a0d56273b7e2cd68fc5ca42a4f9b73e.tar.gz Auto-GPT-e44ca4185a0d56273b7e2cd68fc5ca42a4f9b73e.tar.bz2 Auto-GPT-e44ca4185a0d56273b7e2cd68fc5ca42a4f9b73e.zip |
fix(frontend): Unbreak `ChatInputField`
Fix specification of `onSubmitted` hook in the `TextField`.
-rw-r--r-- | frontend/lib/views/chat/chat_input_field.dart | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/frontend/lib/views/chat/chat_input_field.dart b/frontend/lib/views/chat/chat_input_field.dart index 650e0eff7..63afa2319 100644 --- a/frontend/lib/views/chat/chat_input_field.dart +++ b/frontend/lib/views/chat/chat_input_field.dart @@ -117,8 +117,7 @@ class _ChatInputFieldState extends State<ChatInputField> { controller: _controller, focusNode: _focusNode, // Enable enter key stroke to send the message - // Untested but submitted at Pwuts recommendation - onSubmitted: () { + onSubmitted: (_) { widget.onSendPressed(_controller.text); _controller.clear(); }, |