From a16c85b07d136798a9b96cffacf66911ee5ea554 Mon Sep 17 00:00:00 2001 From: josc146 Date: Sun, 28 May 2023 23:44:21 +0800 Subject: [PATCH] fix: the configs page now always displays the currently selected non-local model so that other models can be selected properly --- frontend/src/pages/Configs.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/pages/Configs.tsx b/frontend/src/pages/Configs.tsx index 68a227e..c676d32 100644 --- a/frontend/src/pages/Configs.tsx +++ b/frontend/src/pages/Configs.tsx @@ -775,6 +775,10 @@ export const Configs: FC = observer(() => { modelName: data.value }); }}> + {!commonStore.modelSourceList.find(item => item.name === selectedConfig.modelParameters.modelName)?.isLocal + && } {commonStore.modelSourceList.map((modelItem, index) => modelItem.isLocal && )}