Skip to content

Commit

Permalink
fix: FastPR title and body modification not take effect (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyantong2000 authored Nov 21, 2024
1 parent 2bd3359 commit 201cb75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ContentScripts/features/fast-pr/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const View = ({ filePath, originalRepo, branch, platform, horizontalRatio, verti
if (originalContent != content) {
// If content has changed, handle PR creation
setIsModalOpen(true);
form.resetFields();
}
});
};
Expand Down Expand Up @@ -193,7 +194,6 @@ const View = ({ filePath, originalRepo, branch, platform, horizontalRatio, verti

const handlePRSubmission = () => {
setIsModalOpen(false); // Close modal after submission
form.resetFields();
if (platform === 'Github') githubService.submitGithubPR(form, originalRepo, branch, filePath, fileContent);
else giteeService.submitGiteePR(form, originalRepo, branch, filePath, fileContent);
};
Expand Down

0 comments on commit 201cb75

Please sign in to comment.