Skip to content

Commit 275684d

Browse files
catlog22claude
andcommitted
fix: Load embedding pool config before rendering sidebar
Ensures the sidebar summary displays correctly on page load 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 0f8a47e commit 275684d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ccw/src/templates/dashboard-js/views/api-settings.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,10 @@ async function renderApiSettings() {
10081008
'<i data-lucide="plus"></i> ' + t('apiSettings.addEndpoint') +
10091009
'</button>';
10101010
} else if (activeSidebarTab === 'embedding-pool') {
1011+
// Load embedding pool config first if not already loaded
1012+
if (!embeddingPoolConfig) {
1013+
await loadEmbeddingPoolConfig();
1014+
}
10111015
sidebarContentHtml = renderEmbeddingPoolSidebar();
10121016
} else if (activeSidebarTab === 'cache') {
10131017
sidebarContentHtml = '<div class="cache-sidebar-info" style="padding: 1rem; color: var(--text-secondary); font-size: 0.875rem;">' +

0 commit comments

Comments
 (0)