Skip to content

Commit 867ae41

Browse files
author
meorphis
committed
preview
1 parent c02f810 commit 867ae41

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/internalPreview.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ async function main() {
347347
const cached = state.codegenDiffCache[lang];
348348
if (cached) {
349349
head.hasDiff = cached.hasDiff;
350+
base.hasDiff = head.hasDiff;
350351
head.codegenCompareUrl = cached.compareUrl;
351352
head.diffStats = cached.diffStats ?? undefined;
352353
}
@@ -355,6 +356,7 @@ async function main() {
355356
const headTreeOid = head.commit?.completed?.commit?.tree_oid;
356357
if (baseTreeOid && headTreeOid) {
357358
head.hasDiff = baseTreeOid !== headTreeOid;
359+
base.hasDiff = head.hasDiff;
358360

359361
// On first detection of a diff, clone and diff the repo to get stats.
360362
if (

0 commit comments

Comments
 (0)