Skip to content

Commit 46df2d0

Browse files
committed
fix(pdf-server): refresh annotation panel after save rebases baseline
setDirty(false) updated the title and save button but the panel kept showing pending-change badges because it diffs against pdfBaselineAnnotations/FormValues and was never re-rendered.
1 parent fc09b64 commit 46df2d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/pdf-server/src/mcp-app.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3110,6 +3110,10 @@ async function savePdf(): Promise<void> {
31103110
for (const [k, v] of formFieldValues) pdfBaselineFormValues.set(k, v);
31113111

31123112
setDirty(false); // → updateSaveBtn() disables button
3113+
// Panel diffs against the baselines we just rebased — re-render so the
3114+
// "edited" badges and pending-change list go away.
3115+
updateAnnotationsBadge();
3116+
renderAnnotationPanel();
31133117
const key = annotationStorageKey();
31143118
if (key) {
31153119
try {

0 commit comments

Comments
 (0)