feat: skip rendering if value render is not defiend (#8244)

fix AF-1387
This commit is contained in:
darkskygit
2024-09-13 12:42:22 +00:00
parent 7bc28d7935
commit ae3f48d0cc

View File

@@ -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 }) => (