@@ -85,7 +85,7 @@ class TableView extends React.Component<TableViewProps> {
85
85
_updateColumn = ( columnIndex : number , nextColumn : TableColumn < keyof TableDataRow > ) => {
86
86
const { location, eventView, tableData} = this . props ;
87
87
88
- if ( ! tableData ) {
88
+ if ( ! tableData || ! tableData . meta ) {
89
89
return ;
90
90
}
91
91
@@ -112,7 +112,7 @@ class TableView extends React.Component<TableViewProps> {
112
112
_deleteColumn = ( columnIndex : number ) => {
113
113
const { location, eventView, tableData} = this . props ;
114
114
115
- if ( ! tableData ) {
115
+ if ( ! tableData || ! tableData . meta ) {
116
116
return ;
117
117
}
118
118
@@ -143,7 +143,7 @@ class TableView extends React.Component<TableViewProps> {
143
143
_renderGridHeaderCell = ( column : TableColumn < keyof TableDataRow > ) : React . ReactNode => {
144
144
const { eventView, location, tableData} = this . props ;
145
145
146
- if ( ! tableData ) {
146
+ if ( ! tableData || ! tableData . meta ) {
147
147
return column . name ;
148
148
}
149
149
@@ -178,9 +178,11 @@ class TableView extends React.Component<TableViewProps> {
178
178
dataRow : TableDataRow
179
179
) : React . ReactNode => {
180
180
const { location, organization, tableData, eventView} = this . props ;
181
- if ( ! tableData ) {
181
+
182
+ if ( ! tableData || ! tableData . meta ) {
182
183
return dataRow [ column . key ] ;
183
184
}
185
+
184
186
const hasLinkField = eventView . hasAutolinkField ( ) ;
185
187
const forceLink =
186
188
! hasLinkField && eventView . getFields ( ) . indexOf ( String ( column . field ) ) === 0 ;
0 commit comments