handle fs metadata.created() not present

This commit is contained in:
2025-07-17 17:37:39 +02:00
parent c1f1185ad4
commit d8963e1f2d
6 changed files with 14 additions and 8 deletions

View File

@@ -59,6 +59,7 @@ async function openRenameDialog() {
>
<span>{{ entry.name }}</span>
<NuxtTime
v-if="entry.createdAt != null"
:datetime="entry.createdAt * 1000"
class="text-muted-foreground text-sm"
relative

View File

@@ -10,7 +10,7 @@ export type DirectoryEntry = {
fileType: FileType;
mimeType: string | null;
/// Timestamp in seconds
createdAt: number;
createdAt: number | null;
};
export type UploadStatus =