diff --git a/daras_ai_v2/prompt_vars.py b/daras_ai_v2/prompt_vars.py index 4ab9878a2..d6181f998 100644 --- a/daras_ai_v2/prompt_vars.py +++ b/daras_ai_v2/prompt_vars.py @@ -32,7 +32,7 @@ def variables_input( else: template_var_names |= jinja2.meta.find_undeclared_variables(parsed) - old_vars = st.session_state.get(key, {}) + old_vars = st.session_state.get(key) or {} var_add_key = f"--{key}:add_btn" var_name_key = f"--{key}:add_name"