rename resultImg -> resultImage
This commit is contained in:
parent
56b9e8bf50
commit
c3e972eb11
@ -128,11 +128,11 @@ function App() {
|
||||
async function doUpdate() {
|
||||
const updatedHistory = [...history, generatedCode, updateInstruction];
|
||||
if (isImgCompare) {
|
||||
const resultImg = await takeScreenshot();
|
||||
const resultImage = await takeScreenshot();
|
||||
doGenerateCode({
|
||||
generationType: "update",
|
||||
image: referenceImages[0],
|
||||
resultImg: resultImg,
|
||||
resultImage: resultImage,
|
||||
history: updatedHistory,
|
||||
});
|
||||
} else {
|
||||
|
||||
@ -10,7 +10,7 @@ const STOP_MESSAGE = "Code generation stopped";
|
||||
export interface CodeGenerationParams {
|
||||
generationType: "create" | "update";
|
||||
image: string;
|
||||
resultImg?: string;
|
||||
resultImage?: string;
|
||||
history?: string[];
|
||||
// isImageGenerationEnabled: boolean; // TODO: Merge with Settings type in types.ts
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user