Skip to content

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

fix: external documents cause error

Marc Seitzbc555ab6f89b
diff --git a/pages/settings/people.tsx b/pages/settings/people.tsx
index 90b33188..0aeff9ef 100644
--- a/pages/settings/people.tsx
+++ b/pages/settings/people.tsx
@@ -58,7 +58,7 @@ export default function Billing() {
const getUserDocumentCount = (userId: string) => {
const documents = team?.documents.filter(
- (document) => document.owner.id === userId,
+ (document) => document.owner?.id === userId,
);
return documents?.length;
};