@@ -132,12 +132,6 @@ export const ListView: React.FC<ListViewProps> = ({
132132 yAxisFields : schema . options ?. chart ?. yAxisFields || [ 'value' ] ,
133133 ...( schema . options ?. chart || { } ) ,
134134 } ;
135- case 'spreadsheet' :
136- return {
137- type : 'object-spreadsheet' ,
138- ...baseProps ,
139- ...( schema . options ?. spreadsheet || { } ) ,
140- } ;
141135 case 'gallery' :
142136 return {
143137 type : 'object-gallery' ,
@@ -179,7 +173,7 @@ export const ListView: React.FC<ListViewProps> = ({
179173
180174 // Available view types based on schema configuration
181175 const availableViews = React . useMemo ( ( ) => {
182- const views : ViewType [ ] = [ 'grid' , 'list' , 'spreadsheet' ] ;
176+ const views : ViewType [ ] = [ 'grid' , 'list' ] ;
183177
184178 // Check for Kanban capabilities
185179 if ( schema . options ?. kanban ?. groupField ) {
@@ -214,7 +208,7 @@ export const ListView: React.FC<ListViewProps> = ({
214208 // Always allow switching back to the viewType defined in schema if it's one of the supported types
215209 // This ensures that if a view is configured as "map", the map button is shown even if we missed the options check above
216210 if ( schema . viewType && ! views . includes ( schema . viewType as ViewType ) &&
217- [ 'grid' , 'list' , 'kanban' , 'calendar' , 'spreadsheet' , ' timeline', 'gantt' , 'map' , 'chart' , 'gallery' ] . includes ( schema . viewType ) ) {
211+ [ 'grid' , 'list' , 'kanban' , 'calendar' , 'timeline' , 'gantt' , 'map' , 'chart' , 'gallery' ] . includes ( schema . viewType ) ) {
218212 views . push ( schema . viewType as ViewType ) ;
219213 }
220214
0 commit comments