fix: upload dialog title in root dir

This commit is contained in:
2025-10-12 13:22:59 +00:00
parent 0e460370da
commit 5eff2fa756

View File

@@ -2,7 +2,6 @@ import type { Doc } from "@fileone/convex/_generated/dataModel"
import { useMutation } from "@tanstack/react-query" import { useMutation } from "@tanstack/react-query"
import { import {
atom, atom,
type PrimitiveAtom,
useAtom, useAtom,
useAtomValue, useAtomValue,
useSetAtom, useSetAtom,
@@ -126,7 +125,7 @@ export function UploadFileDialog({
<DialogContent className="sm:max-w-2xl"> <DialogContent className="sm:max-w-2xl">
<DialogHeader> <DialogHeader>
<DialogTitle> <DialogTitle>
Upload file to "{targetDirectory.name}" {targetDirectory.name ? `Upload file to "${targetDirectory.name}"` : "Upload file"}
</DialogTitle> </DialogTitle>
<DialogDescription> <DialogDescription>
Drag and drop files here or click to select files Drag and drop files here or click to select files