fix(runtime): default provider panel to providers
This commit is contained in:
parent
a4fb99d0e8
commit
6fbba5feb9
1 changed files with 1 additions and 2 deletions
|
|
@ -2287,8 +2287,7 @@ export function RuntimeProviderManagementPanelView({
|
||||||
: t('runtimeProvider.providers.countFallback');
|
: t('runtimeProvider.providers.countFallback');
|
||||||
const launchableModelCount = state.view?.configuredModels?.length ?? 0;
|
const launchableModelCount = state.view?.configuredModels?.length ?? 0;
|
||||||
const modelsLoading = state.loading && launchableModelCount === 0;
|
const modelsLoading = state.loading && launchableModelCount === 0;
|
||||||
const activeSection =
|
const activeSection = selectedSection ?? 'providers';
|
||||||
selectedSection ?? (modelsLoading || launchableModelCount > 0 ? 'models' : 'providers');
|
|
||||||
const hasProjectContext = Boolean(projectPath?.trim());
|
const hasProjectContext = Boolean(projectPath?.trim());
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue