Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): fix delete doc property description (#8772)

EYHN9239eed6a794
diff --git a/packages/frontend/core/src/components/doc-properties/menu/edit-doc-property.tsx b/packages/frontend/core/src/components/doc-properties/menu/edit-doc-property.tsx
index 1659ac89b9..f47e78fbff 100644
--- a/packages/frontend/core/src/components/doc-properties/menu/edit-doc-property.tsx
+++ b/packages/frontend/core/src/components/doc-properties/menu/edit-doc-property.tsx
@@ -186,13 +186,12 @@ export const EditDocPropertyMenuItems = ({
description: (
<Trans
values={{
- name: propertyInfo.name,
+ name: name,
}}
i18nKey="com.affine.settings.workspace.properties.delete-property-desc"
>
- The <strong>{{ name: propertyInfo.name } as any}</strong>{' '}
- property will be removed from count doc(s). This action cannot
- be undone.
+ The <strong>{{ name: name } as any}</strong> property will be
+ removed from count doc(s). This action cannot be undone.
</Trans>
),
confirmText: t['Confirm'](),