Fix the Notebook tab not loading its default prompt

This commit is contained in:
oobabooga 2025-04-26 18:25:06 -07:00
parent 511eb6aa94
commit 943451284f

View file

@ -266,7 +266,7 @@ def apply_interface_values(state, use_persistent=False):
if 'textbox-default' in state and 'prompt_menu-default' in state:
state.pop('prompt_menu-default')
if 'textbox-notebook' and 'prompt_menu-notebook' in state:
if 'textbox-notebook' in state and 'prompt_menu-notebook' in state:
state.pop('prompt_menu-notebook')
elements = list_interface_input_elements()