fix: chat history model load

This commit is contained in:
Timothy J. Baek 2023-11-12 10:46:37 -08:00
parent 0cc4284b03
commit 9dc75f3002

View file

@ -372,7 +372,7 @@
history = _history; history = _history;
} }
if ('models' in chat) { if ('models' in chat && chat.models !== undefined) {
selectedModels = chat.models ?? selectedModels; selectedModels = chat.models ?? selectedModels;
} else { } else {
selectedModels = [chat.model ?? '']; selectedModels = [chat.model ?? ''];