From bcefeb41636ca7950e3c013940cedc3d527f3938 Mon Sep 17 00:00:00 2001 From: Alex Blank Date: Wed, 27 May 2026 15:17:34 +0200 Subject: [PATCH] fix: git mount add button not adding mounts --- apps/web/src/components/git-mount-editor.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/web/src/components/git-mount-editor.tsx b/apps/web/src/components/git-mount-editor.tsx index a3cdc0b..52d5765 100644 --- a/apps/web/src/components/git-mount-editor.tsx +++ b/apps/web/src/components/git-mount-editor.tsx @@ -16,9 +16,8 @@ export const GitMountEditor = ({ mounts, onChange }: GitMountEditorProps) => { branch: "", }); - const handleAdd = () => { - if (!newMount.remote_url || !newMount.target_path) return; - onChange([...mounts, { ...newMount }]); + const handleAdd = (mount: GitMount) => { + onChange([...mounts, mount]); setNewMount({ remote_url: "", source_path: ".", target_path: "", branch: "" }); };