Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: cleanup
Marc Seitz9aac42ac6aed
diff --git a/components/upload-zone.tsx b/components/upload-zone.tsxindex 72515212..065423a8 100644--- a/components/upload-zone.tsx+++ b/components/upload-zone.tsx@@ -730,4 +730,4 @@ export default function UploadZone({{children}</div>);-}\ No newline at end of file+}diff --git a/components/welcome/special-upload.tsx b/components/welcome/special-upload.tsxindex a2def7ae..f4628723 100644--- a/components/welcome/special-upload.tsx+++ b/components/welcome/special-upload.tsx@@ -9,15 +9,6 @@ import { motion } from "motion/react";import { usePlausible } from "next-plausible";import { toast } from "sonner";-import DocumentUpload from "@/components/document-upload";-import {- Accordion,- AccordionContent,- AccordionItem,- AccordionTrigger,-} from "@/components/ui/accordion";-import { Button } from "@/components/ui/button";-import { useAnalytics } from "@/lib/analytics";import { STAGGER_CHILD_VARIANTS } from "@/lib/constants";import { DocumentData, createDocument } from "@/lib/documents/create-document";@@ -29,6 +20,15 @@ import {} from "@/lib/utils";import { getSupportedContentType } from "@/lib/utils/get-content-type";+import DocumentUpload from "@/components/document-upload";+import {+ Accordion,+ AccordionContent,+ AccordionItem,+ AccordionTrigger,+} from "@/components/ui/accordion";+import { Button } from "@/components/ui/button";+import Skeleton from "../Skeleton";import { DEFAULT_LINK_PROPS, DEFAULT_LINK_TYPE } from "../links/link-sheet";import { LinkOptions } from "../links/link-sheet/link-options";diff --git a/pages/api/teams/[teamId]/documents/[id]/versions/index.ts b/pages/api/teams/[teamId]/documents/[id]/versions/index.tsindex 5e6f57fe..29f381d3 100644--- a/pages/api/teams/[teamId]/documents/[id]/versions/index.ts+++ b/pages/api/teams/[teamId]/documents/[id]/versions/index.ts@@ -133,7 +133,11 @@ export default async function handle();}- if (type === "video" && contentType !== "video/mp4" && contentType.startsWith("video/")) {+ if (+ type === "video" &&+ contentType !== "video/mp4" &&+ contentType?.startsWith("video/")+ ) {await processVideo.trigger({videoUrl: url,