Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

Update app/api/views/route.ts

Marc Seitz69445a026e1a
diff --git a/app/api/views/route.ts b/app/api/views/route.ts
index d117785b..a1b2b21e 100644
--- a/app/api/views/route.ts
+++ b/app/api/views/route.ts
@@ -587,9 +587,7 @@ export async function POST(request: NextRequest) {
if (documentVersion.type === "sheet") {
if (useAdvancedExcelViewer) {
- if (documentVersion.file.includes("https://")) {
- documentVersion.file = documentVersion.file;
- } else {
+ if (!documentVersion.file.includes("https://")) {
// Get team-specific storage config for advanced distribution host
const storageConfig = await getTeamStorageConfigById(
link.teamId!,