diff --git a/modules/ui_chat.py b/modules/ui_chat.py index 8ce7b610..3d3a75df 100644 --- a/modules/ui_chat.py +++ b/modules/ui_chat.py @@ -378,4 +378,4 @@ def create_event_handlers(): partial(chat.generate_chat_prompt, '', _continue=True), gradio('interface_state'), gradio('textbox-notebook')).then( lambda: None, None, None, js=f'() => {{{ui.switch_tabs_js}; switch_to_notebook()}}') - shared.gradio['show_controls'].change(None, gradio('show_controls'), None, js=f'(x) => {{{ui.show_controls_js}; toggle_controls(x)}}') + shared.gradio['show_controls'].change(lambda x: None, gradio('show_controls'), None, js=f'(x) => {{{ui.show_controls_js}; toggle_controls(x)}}')