mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 03:33:06 +08:00
fix(core): deleted tags property cannot be added back (#8761)
fix AF-1661
This commit is contained in:
@@ -46,6 +46,7 @@ export const CreatePropertyMenuItems = ({
|
|||||||
name,
|
name,
|
||||||
type: option.type,
|
type: option.type,
|
||||||
index: propertyList.indexAt(at),
|
index: propertyList.indexAt(at),
|
||||||
|
isDeleted: false,
|
||||||
});
|
});
|
||||||
onCreated?.(newProperty);
|
onCreated?.(newProperty);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ export const DocPropertySidebar = () => {
|
|||||||
name,
|
name,
|
||||||
type: option.type,
|
type: option.type,
|
||||||
index: propertyList.indexAt('after'),
|
index: propertyList.indexAt('after'),
|
||||||
|
isDeleted: false,
|
||||||
});
|
});
|
||||||
setNewPropertyId(newProperty.id);
|
setNewPropertyId(newProperty.id);
|
||||||
track.doc.sidepanel.property.addProperty({
|
track.doc.sidepanel.property.addProperty({
|
||||||
|
|||||||
Reference in New Issue
Block a user