Skip to content

Commit

Permalink
Merge pull request #787 from besscroft/main
Browse files Browse the repository at this point in the history
fix: fixed diff res construct error
  • Loading branch information
genedna authored Dec 28, 2024
2 parents 67f513d + cdc75e7 commit 0873c6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moon/src/app/(dashboard)/mr/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ export default function MRDetailPage({ params }: { params: Params }) {
const get_diff_content = useCallback(async () => {
const detail = await fetch(`/api/mr/${id}/files-changed`);
const res = await detail.json();
setOutputHtml(Diff2Html.html(res.data.data, { drawFileList: true, matching: 'lines' }));
const diff = Diff2Html.html(res.data.data.content, { drawFileList: true, matching: 'lines' })
setOutputHtml(diff);
}, [id])

useEffect(() => {
Expand Down

1 comment on commit 0873c6f

@vercel
Copy link

@vercel vercel bot commented on 0873c6f Dec 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mega – ./

www.gitmega.dev
mega-git-main-gitmono.vercel.app
mega-gitmono.vercel.app
gitmega.dev

Please sign in to comment.