Skip to content

Commit e28c843

Browse files
fix build
1 parent e20ce40 commit e28c843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/components/blocks/_delete/deleteResultStage/DeleteResultStage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const DeleteResultStage = ({ docType, setDownloadStage }: Props): React.JSX.Elem
3232
);
3333
};
3434

35-
const recordLabel = getDocumentTypeLabel(docType);
35+
const recordLabel = docType ? getDocumentTypeLabel(docType) : '';
3636

3737
const isGP = role === REPOSITORY_ROLE.GP_ADMIN || role === REPOSITORY_ROLE.GP_CLINICAL;
3838
const pageHeader = `You have permanently removed the ${recordLabel ? recordLabel : 'records'} of:`;

0 commit comments

Comments
 (0)