mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
feat: skip rendering if value render is not defiend (#8244)
fix AF-1387
This commit is contained in:
@@ -759,6 +759,11 @@ export const PagePropertyRow = ({
|
||||
setEditingMeta(false);
|
||||
setEditingItem(null);
|
||||
}, [setEditingItem]);
|
||||
|
||||
// NOTE: if we define a new property type, the value render may not exists in old client
|
||||
// skip rendering if value render is not define yet
|
||||
if (!ValueRenderer || typeof ValueRenderer !== 'function') return null;
|
||||
|
||||
return (
|
||||
<SortablePropertyRow property={property} data-testid="page-property-row">
|
||||
{({ attributes, listeners }) => (
|
||||
|
||||
Reference in New Issue
Block a user