mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
refactor: remove unused model variable from Footer component
This commit is contained in:
parent
1a2edc3fa3
commit
8725b91e11
1 changed files with 1 additions and 3 deletions
|
|
@ -27,13 +27,11 @@ export const Footer: React.FC = () => {
|
|||
const { vimEnabled, vimMode } = useVimMode();
|
||||
|
||||
const {
|
||||
model,
|
||||
errorCount,
|
||||
showErrorDetails,
|
||||
promptTokenCount,
|
||||
showAutoAcceptIndicator,
|
||||
} = {
|
||||
model: config.getModel(),
|
||||
errorCount: uiState.errorCount,
|
||||
showErrorDetails: uiState.showErrorDetails,
|
||||
promptTokenCount: uiState.sessionStats.lastPromptTokenCount,
|
||||
|
|
@ -61,7 +59,7 @@ export const Footer: React.FC = () => {
|
|||
// Memoize contextWindowSize to avoid recalculating on every render
|
||||
const contextWindowSize = useMemo(
|
||||
() => config.getContentGeneratorConfig()?.contextWindowSize,
|
||||
[config]
|
||||
[config],
|
||||
);
|
||||
|
||||
// Left section should show exactly ONE thing at any time, in priority order.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue