diff --git a/docs/data/data-grid/editing/FullFeaturedCrudGrid.js b/docs/data/data-grid/editing/FullFeaturedCrudGrid.js index 73fbc6aa03f4..9481818e7896 100644 --- a/docs/data/data-grid/editing/FullFeaturedCrudGrid.js +++ b/docs/data/data-grid/editing/FullFeaturedCrudGrid.js @@ -68,7 +68,10 @@ function EditToolbar(props) { const handleClick = () => { const id = randomId(); - setRows((oldRows) => [...oldRows, { id, name: '', age: '', isNew: true }]); + setRows((oldRows) => [ + ...oldRows, + { id, name: '', age: '', role: '', isNew: true }, + ]); setRowModesModel((oldModel) => ({ ...oldModel, [id]: { mode: GridRowModes.Edit, fieldToFocus: 'name' }, diff --git a/docs/data/data-grid/editing/FullFeaturedCrudGrid.tsx b/docs/data/data-grid/editing/FullFeaturedCrudGrid.tsx index ea0680357f04..ca1f3daaf594 100644 --- a/docs/data/data-grid/editing/FullFeaturedCrudGrid.tsx +++ b/docs/data/data-grid/editing/FullFeaturedCrudGrid.tsx @@ -82,7 +82,10 @@ function EditToolbar(props: EditToolbarProps) { const handleClick = () => { const id = randomId(); - setRows((oldRows) => [...oldRows, { id, name: '', age: '', isNew: true }]); + setRows((oldRows) => [ + ...oldRows, + { id, name: '', age: '', role: '', isNew: true }, + ]); setRowModesModel((oldModel) => ({ ...oldModel, [id]: { mode: GridRowModes.Edit, fieldToFocus: 'name' },