From e6ef1dea515b7a9732c89a726bb3d975b866071a Mon Sep 17 00:00:00 2001 From: pengx17 Date: Mon, 11 Nov 2024 02:48:04 +0000 Subject: [PATCH] fix(core): deleted tags property cannot be added back (#8761) fix AF-1661 --- .../src/components/doc-properties/menu/create-doc-property.tsx | 1 + .../core/src/components/doc-properties/sidebar/index.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/frontend/core/src/components/doc-properties/menu/create-doc-property.tsx b/packages/frontend/core/src/components/doc-properties/menu/create-doc-property.tsx index a03241a241d3a..fdc0a6c707cf3 100644 --- a/packages/frontend/core/src/components/doc-properties/menu/create-doc-property.tsx +++ b/packages/frontend/core/src/components/doc-properties/menu/create-doc-property.tsx @@ -46,6 +46,7 @@ export const CreatePropertyMenuItems = ({ name, type: option.type, index: propertyList.indexAt(at), + isDeleted: false, }); onCreated?.(newProperty); }, diff --git a/packages/frontend/core/src/components/doc-properties/sidebar/index.tsx b/packages/frontend/core/src/components/doc-properties/sidebar/index.tsx index b14c497adda5e..8927f8cdd4406 100644 --- a/packages/frontend/core/src/components/doc-properties/sidebar/index.tsx +++ b/packages/frontend/core/src/components/doc-properties/sidebar/index.tsx @@ -47,6 +47,7 @@ export const DocPropertySidebar = () => { name, type: option.type, index: propertyList.indexAt('after'), + isDeleted: false, }); setNewPropertyId(newProperty.id); track.doc.sidepanel.property.addProperty({