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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(speakers): fix delete speaker loading forever
Louis Beaumont43dcd3efeb5f
diff --git a/apps/screenpipe-app-tauri/components/settings/speakers-section.tsx b/apps/screenpipe-app-tauri/components/settings/speakers-section.tsxindex 946d2ace1..2390e88db 100644--- a/apps/screenpipe-app-tauri/components/settings/speakers-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/speakers-section.tsx@@ -313,7 +313,7 @@ function SpeakerRow({className="h-7 w-7 text-destructive"title="delete"disabled={deleting}- onClick={async () => { setDeleting(true); await onDelete(speaker.id); setDeleting(false); }}+ onClick={async () => { setDeleting(true); try { await onDelete(speaker.id); } catch {} finally { setDeleting(false); } }}>{deleting ? <Loader2 className="h-3 w-3 animate-spin" /> : <Trash2 className="h-3 w-3" />}</Button>@@ -362,7 +362,7 @@ export function SpeakersSection() {const deleteSpeaker = async (id: number) => {const res = await fetch("http://localhost:3030/speakers/delete", {method: "POST", headers: { "Content-Type": "application/json" },- body: JSON.stringify({ speaker_id: id }),+ body: JSON.stringify({ id }),});if (!res.ok) throw new Error("failed");toast({ title: "speaker deleted" });