From fe0621fb5367977bc666a86dc6c3cd49cbbba4f4 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 7 May 2026 23:26:23 +0200 Subject: [PATCH] Remove git remote state and handling --- src/App.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index d6989c3..4cac0ee 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -88,7 +88,6 @@ export default function App() { const [imagePrompt, setImagePrompt] = useState(IMAGE_PROMPT_PLACEHOLDER); const [ollamaHost, setOllamaHost] = useState("http://localhost:11434"); const [ollamaModel, setOllamaModel] = useState("Select model..."); - const [gitRemote, setGitRemote] = useState(""); const [searxUrl, setSearxUrl] = useState("http://localhost:8888"); const [models, setModels] = useState([]); const [busy, setBusy] = useState>({}); @@ -134,7 +133,6 @@ export default function App() { if (!mounted) return; if (settings.ollama_host) setOllamaHost(settings.ollama_host); if (settings.ollama_model) setOllamaModel(settings.ollama_model); - if (settings.git_remote_url) setGitRemote(settings.git_remote_url); if (settings.searx_url) setSearxUrl(settings.searx_url); } catch { // ignore @@ -159,13 +157,12 @@ export default function App() { settings: { ollama_host: ollamaHost, ollama_model: ollamaModel, - git_remote_url: gitRemote, searx_url: searxUrl, }, }).catch(() => undefined); }, 400); return () => clearTimeout(timer); - }, [ollamaHost, ollamaModel, gitRemote, searxUrl]); + }, [ollamaHost, ollamaModel, searxUrl]); useEffect(() => { let unlisten: (() => void) | undefined;