diff --git a/apps/remix/app/components/dialogs/webhook-create-dialog.tsx b/apps/remix/app/components/dialogs/webhook-create-dialog.tsx index 32f16045c..f8c5c94d2 100644 --- a/apps/remix/app/components/dialogs/webhook-create-dialog.tsx +++ b/apps/remix/app/components/dialogs/webhook-create-dialog.tsx @@ -230,14 +230,13 @@ export const WebhookCreateDialog = ({ trigger, ...props }: WebhookCreateDialogPr /> -
- - -
+ + +
diff --git a/apps/remix/app/root.tsx b/apps/remix/app/root.tsx index a741ee00a..fc7f13ffb 100644 --- a/apps/remix/app/root.tsx +++ b/apps/remix/app/root.tsx @@ -171,9 +171,11 @@ export default function App() { } export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) { - console.error('[RootErrorBoundary]', error); - const errorCode = isRouteErrorResponse(error) ? error.status : 500; + if (errorCode !== 404) { + console.error('[RootErrorBoundary]', error); + } + return ; } diff --git a/packages/ui/primitives/pdf-viewer.tsx b/packages/ui/primitives/pdf-viewer.tsx index ceb3cc4b3..8ebc94bff 100644 --- a/packages/ui/primitives/pdf-viewer.tsx +++ b/packages/ui/primitives/pdf-viewer.tsx @@ -6,6 +6,7 @@ import { Trans } from '@lingui/react/macro'; import type { DocumentData } from '@prisma/client'; import { Loader } from 'lucide-react'; import { type PDFDocumentProxy, PasswordResponses } from 'pdfjs-dist'; +import pdfWorker from 'pdfjs-dist/build/pdf.worker.min?url'; import { Document as PDFDocument, Page as PDFPage, pdfjs } from 'react-pdf'; import 'react-pdf/dist/esm/Page/AnnotationLayer.css'; import 'react-pdf/dist/esm/Page/TextLayer.css'; @@ -23,10 +24,7 @@ export type LoadedPDFDocument = PDFDocumentProxy; /** * This imports the worker from the `pdfjs-dist` package. */ -pdfjs.GlobalWorkerOptions.workerSrc = new URL( - 'pdfjs-dist/build/pdf.worker.min.js', - import.meta.url, -).toString(); +pdfjs.GlobalWorkerOptions.workerSrc = pdfWorker; export type OnPDFViewerPageClick = (_event: { pageNumber: number;