File tree Expand file tree Collapse file tree
frontend/src/app/components/dashboard/db-table-row-view Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ import { MatButtonModule } from '@angular/material/button';
88import { MatIconModule } from '@angular/material/icon' ;
99import { MatTooltipModule } from '@angular/material/tooltip' ;
1010import { NotificationsService } from 'src/app/services/notifications.service' ;
11+ import { PlaceholderRecordViewComponent } from '../../skeletons/placeholder-record-view/placeholder-record-view.component' ;
1112import { TableStateService } from 'src/app/services/table-state.service' ;
1213import { normalizeFieldName } from 'src/app/lib/normalize' ;
13- import { PlaceholderRecordViewComponent } from '../../skeletons/placeholder-record-view/placeholder-record-view.component' ;
1414
1515@Component ( {
1616 selector : 'app-db-table-row-view' ,
@@ -44,7 +44,7 @@ export class DbTableRowViewComponent implements OnInit {
4444 ngOnInit ( ) : void {
4545 this . _tableState . cast . subscribe ( ( row ) => {
4646 this . selectedRow = row ;
47- if ( row . columnsOrder ) {
47+ if ( row && row . columnsOrder ) {
4848 const columnsOrder = this . selectedRow . columnsOrder . length ? this . selectedRow . columnsOrder : Object . keys ( this . selectedRow . record ) ;
4949 this . columns = columnsOrder . map ( column => {
5050 return {
You can’t perform that action at this time.
0 commit comments