Put back default email using current user context in bulk document exports

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-05 10:41:36 +01:00
committed by Bryan Frimin
parent 31f79fccce
commit 2790a4e46e
2 changed files with 6 additions and 20 deletions

View File

@@ -37,7 +37,7 @@ type Props = {
children: ReactNode;
onExport: (options: BulkExportFormData) => void;
isLoading?: boolean;
defaultEmail?: string;
defaultEmail: string;
selectedCount: number;
};
@@ -47,7 +47,7 @@ export type BulkExportDialogRef = {
};
export const BulkExportDialog = forwardRef<BulkExportDialogRef, Props>(
({ children, onExport, isLoading = false, defaultEmail = "", selectedCount }, ref) => {
({ children, onExport, isLoading = false, defaultEmail, selectedCount }, ref) => {
const { __ } = useTranslate();
const dialogRef = useDialogRef();