mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-27 14:15:26 +08:00
Potential fix for pull request finding 'Useless assignment to local variable'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
@@ -194,13 +194,6 @@ export default function ChatComposer({
|
|||||||
const isRecording = voiceState === 'recording';
|
const isRecording = voiceState === 'recording';
|
||||||
const isTranscribing = voiceState === 'transcribing';
|
const isTranscribing = voiceState === 'transcribing';
|
||||||
|
|
||||||
const textareaRect = textareaRef.current?.getBoundingClientRect();
|
|
||||||
const commandMenuPosition = {
|
|
||||||
top: textareaRect ? Math.max(16, textareaRect.top - 316) : 0,
|
|
||||||
left: textareaRect ? textareaRect.left : 16,
|
|
||||||
bottom: textareaRect ? window.innerHeight - textareaRect.top + 8 : 90,
|
|
||||||
};
|
|
||||||
|
|
||||||
// Detect if the AskUserQuestion interactive panel is active
|
// Detect if the AskUserQuestion interactive panel is active
|
||||||
const hasQuestionPanel = pendingPermissionRequests.some(
|
const hasQuestionPanel = pendingPermissionRequests.some(
|
||||||
(r) => r.toolName === 'AskUserQuestion'
|
(r) => r.toolName === 'AskUserQuestion'
|
||||||
|
|||||||
Reference in New Issue
Block a user