From 8d40f8f184f0cede5f7488097140b09ad37b4637 Mon Sep 17 00:00:00 2001 From: Srujan Gurram Date: Thu, 30 Nov 2023 12:59:27 +0530 Subject: [PATCH] Refactor ChatSettings component to use Object.entries instead of Object.keys to iterate over AvailableModels and Mode objects --- src/components/Settings/Sections/ChatSettings.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/Settings/Sections/ChatSettings.tsx b/src/components/Settings/Sections/ChatSettings.tsx index 0efd4de8..a0057795 100644 --- a/src/components/Settings/Sections/ChatSettings.tsx +++ b/src/components/Settings/Sections/ChatSettings.tsx @@ -129,8 +129,8 @@ const ChatSettings = () => { className="input cdx-w-44" onChange={handleModalChange} > - {Object.keys(AvailableModels).map((modal) => ( - ))}