We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d0709c + dd52343 commit 9f8f303Copy full SHA for 9f8f303
1 file changed
web/app.js
@@ -1316,9 +1316,10 @@ const PDFViewerApplication = {
1316
const { classList } = this.appConfig.appContainer;
1317
classList.add("wait");
1318
1319
- const structuralChanges = this.pdfThumbnailViewer?.getStructuralChanges();
1320
- if (structuralChanges) {
1321
- await this.onSavePages({ data: structuralChanges });
+ if (this.pdfThumbnailViewer?.hasStructuralChanges()) {
+ await this.onSavePages({
+ data: this.pdfThumbnailViewer.getStructuralChanges(),
1322
+ });
1323
} else {
1324
await (this.pdfDocument?.annotationStorage.size > 0
1325
? this.save()
0 commit comments