diff --git a/web/pdf_link_service.js b/web/pdf_link_service.js index 4f013ef26eede..7dd8398053ff3 100644 --- a/web/pdf_link_service.js +++ b/web/pdf_link_service.js @@ -171,11 +171,6 @@ class PDFLinkService { } } else if (Number.isInteger(destRef)) { pageNumber = destRef + 1; - } else { - console.error( - `goToDestination: "${destRef}" is not a valid destination reference, for dest="${dest}".` - ); - return; } if (!pageNumber || pageNumber < 1 || pageNumber > this.pagesCount) { console.error(