mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Minor bug fix
This commit is contained in:
parent
fbce30b09f
commit
4333d82b9d
@ -527,8 +527,8 @@ def load_history_after_deletion(state, idx):
|
|||||||
if shared.args.multi_user:
|
if shared.args.multi_user:
|
||||||
return start_new_chat(state)
|
return start_new_chat(state)
|
||||||
|
|
||||||
idx = min(int(idx), len(histories) - 1)
|
|
||||||
histories = find_all_histories(state)
|
histories = find_all_histories(state)
|
||||||
|
idx = min(int(idx), len(histories) - 1)
|
||||||
|
|
||||||
if len(histories) > 0:
|
if len(histories) > 0:
|
||||||
history = load_history(histories[idx], state['character_menu'], state['mode'])
|
history = load_history(histories[idx], state['character_menu'], state['mode'])
|
||||||
|
Loading…
Reference in New Issue
Block a user