diff --git a/frontend/src/components/admin/shares/ManageShareTable.tsx b/frontend/src/components/admin/shares/ManageShareTable.tsx
index 43bb434c..d074f83a 100644
--- a/frontend/src/components/admin/shares/ManageShareTable.tsx
+++ b/frontend/src/components/admin/shares/ManageShareTable.tsx
@@ -5,6 +5,7 @@ import {
MediaQuery,
Skeleton,
Table,
+ Text,
} from "@mantine/core";
import { useClipboard } from "@mantine/hooks";
import { useModals } from "@mantine/modals";
@@ -65,7 +66,13 @@ const ManageShareTable = ({
{share.id} |
{share.name} |
- {share.creator.username} |
+
+ {share.creator ? (
+ share.creator.username
+ ) : (
+ Anonymous
+ )}
+ |
{share.views} |
{byteToHumanSizeString(share.size)} |
diff --git a/frontend/src/types/share.type.ts b/frontend/src/types/share.type.ts
index 92651d67..5666e617 100644
--- a/frontend/src/types/share.type.ts
+++ b/frontend/src/types/share.type.ts
@@ -4,7 +4,7 @@ export type Share = {
id: string;
name?: string;
files: any;
- creator: User;
+ creator?: User;
description?: string;
expiration: Date;
size: number;
|