Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ui): remove duplicate activePreset declaration

Louis Beaumonted230abda17f
diff --git a/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx b/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
index d73a016a8..8d697ab92 100644
--- a/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
+++ b/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
@@ -74,7 +74,6 @@ export function AIPanel({
const { checkLogin } = useLoginDialog();
const [activePreset, setActivePreset] = useState<AIPreset | undefined>(undefined);
const isAvailable = settings.aiPresets && settings.aiPresets.length > 0;
- const [activePreset, setActivePreset] = useState<AIPreset | undefined>(undefined);
const hasValidModel = activePreset?.model && activePreset.model.trim() !== "";
const error = !isAvailable ? "No AI presets configured" : !hasValidModel ? "No model selected in preset" : "";