Skip to content

Commit ae3f48d

Browse files
committed
feat: skip rendering if value render is not defiend (#8244)
fix AF-1387
1 parent 7bc28d7 commit ae3f48d

File tree

1 file changed

+5
-0
lines changed
  • packages/frontend/core/src/components/affine/page-properties

1 file changed

+5
-0
lines changed

packages/frontend/core/src/components/affine/page-properties/table.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,11 @@ export const PagePropertyRow = ({
759759
setEditingMeta(false);
760760
setEditingItem(null);
761761
}, [setEditingItem]);
762+
763+
// NOTE: if we define a new property type, the value render may not exists in old client
764+
// skip rendering if value render is not define yet
765+
if (!ValueRenderer || typeof ValueRenderer !== 'function') return null;
766+
762767
return (
763768
<SortablePropertyRow property={property} data-testid="page-property-row">
764769
{({ attributes, listeners }) => (

0 commit comments

Comments
 (0)