diff --git a/src/blocks/remote-data-container/components/item-list/ItemList.tsx b/src/blocks/remote-data-container/components/item-list/ItemList.tsx index 5b0860b9..77d85f82 100644 --- a/src/blocks/remote-data-container/components/item-list/ItemList.tsx +++ b/src/blocks/remote-data-container/components/item-list/ItemList.tsx @@ -130,7 +130,7 @@ export function ItemList( props: ItemListProps ) { // Only update if tableFields has content and view.fields is empty useEffect( () => { - if ( tableFields.length > 0 && view.fields.length === 0 ) { + if ( tableFields.length > 0 && view.fields?.length === 0 ) { setView( currentView => ( { ...currentView, fields: tableFields,