Skip to content

Commit adb62c3

Browse files
committed
fix: undefined selectedModel
1 parent 6f74c7e commit adb62c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/components/chat/chat-topbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default function ChatTopbar({
6666
// save the first and only model in the list as selectedModel in localstorage
6767
setChatOptions({ ...chatOptions, selectedModel: modelNames[0] });
6868
} catch (error) {
69-
setChatOptions({ ...chatOptions, selectedModel: undefined });
69+
setChatOptions({ ...chatOptions, selectedModel: '' });
7070
toast.error(error as string);
7171
}
7272
};

0 commit comments

Comments
 (0)