Skip to content

Commit

Permalink
Fix ts error
Browse files Browse the repository at this point in the history
Signed-off-by: brookewp <[email protected]>
  • Loading branch information
brookewp committed Feb 27, 2025
1 parent dc33a98 commit 3bf5fee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3bf5fee

Please sign in to comment.