Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Fix edit commit inputs

Abi Raja7795ad2e1500
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index eff03559..f71188d1 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -204,7 +204,9 @@ function App() {
...baseCommitObject,
type: "ai_edit" as const,
parentHash: head,
- inputs: params.prompt,
+ inputs: params.history
+ ? params.history[params.history.length - 1]
+ : { text: "", images: [] },
};
// Create a new commit and set it as the head