Skip to content

Commit 4579a2a

Browse files
authored
Merge pull request #1787 from payloadcms/chore/deleting-error-i18n
chore: fix incorrect translation for error deleting document
2 parents 57ba307 + e0d4b3f commit 4579a2a

File tree

1 file changed

+1
-1
lines changed
  • src/admin/components/elements/DeleteDocument

1 file changed

+1
-1
lines changed

src/admin/components/elements/DeleteDocument/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const DeleteDocument: React.FC<Props> = (props) => {
4444
const modalSlug = `delete-${id}`;
4545

4646
const addDefaultError = useCallback(() => {
47-
toast.error(t('error:deletingError', { title }));
47+
toast.error(t('error:deletingTitle', { title }));
4848
}, [t, title]);
4949

5050
const handleDelete = useCallback(() => {

0 commit comments

Comments
 (0)