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: "" }); };